M
mimi
With a wofstream, we can input wstring into a file. But when i input
some wide character of chinese characters into a file, some error
occur.
With the implementation of STLport 4.62, the wstring of chines
characters were written to the file; But with the implementation of
MS, that is both in VC6.0 and Visual Studio 2005, noting was written
to the file.I don't know why and I wonder to know what the C++
standard said about this? What does the standard guarantees while
dealing with unicode characters?Where could I find such information?
Thanks for any advice.
#include <fstream>
int main()
{
std::wofstream strm2("test.txt");
strm2 << L"ÎÒ°®±±¾©Ìì°²ÃÅ";
return 0;
}
some wide character of chinese characters into a file, some error
occur.
With the implementation of STLport 4.62, the wstring of chines
characters were written to the file; But with the implementation of
MS, that is both in VC6.0 and Visual Studio 2005, noting was written
to the file.I don't know why and I wonder to know what the C++
standard said about this? What does the standard guarantees while
dealing with unicode characters?Where could I find such information?
Thanks for any advice.
#include <fstream>
int main()
{
std::wofstream strm2("test.txt");
strm2 << L"ÎÒ°®±±¾©Ìì°²ÃÅ";
return 0;
}