c++ - std::wstring (from wifstream), spec. chars -
i need std::wstring, std::wifstream, wifstream contains, special characters, such as: ä,ê
and, on.
i have code
wifstream *infile = new wifstream(szfile); std::wstring szwfilestr((std::istreambuf_iterator<wchar_t>(*infile)),std::istreambuf_iterator<wchar_t>());
but, not read in special characters, hoping would
e.g., file contains characters, such ä, , ê, , turn out
ö
i think, in file, utf-8.
any ideas, one? :)
Comments
Post a Comment