I created this minimum working C++ example snippet to compare bytes (by their hex representation) in a std::string and a std::wstring when defining
std::string
std::wstring