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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -