I'm using Code Blocks to write a C++ program. I want to put a Hebrew string in an std::wstring
type, but it isn't working.
If I write this:
std::wstring str2("שלום");
and compile, it gives me this error:
error: no matching function for call to 'std::basic_string<wchar_t>::basic_string(const char [5])'|
If I use "L" before the string literal, i.e.
std::wstring str2(L"שלום");
then it gives the error:
error: converting to execution character set: Invalid argument|