G
Guest
1. how can I have a unicode string?
I see wstring but I dont know if it is unicode
typedef basic_string<wchar_t> wstring;
if not can I use something like: ?
typedef basic_string<short> unicode_string;
2. how can I load a (previous) unicode_string from a stream?
What stream I must use instead of ifstream?
Can I use this: ?
typedef basic_ifstream<wchar_t, char_traits<wchar_t> > unicode_ifstream;
<off-topic>
3. unicode text files (saved from notepad, word, etc) have 2 bytes before any text:
characters FE && FF which indicates 2 numbers FFFE or FEFF (I dont know endianess)
What is this? C++ recognize these characters?
</off-topic>
Thank you
I see wstring but I dont know if it is unicode
typedef basic_string<wchar_t> wstring;
if not can I use something like: ?
typedef basic_string<short> unicode_string;
2. how can I load a (previous) unicode_string from a stream?
What stream I must use instead of ifstream?
Can I use this: ?
typedef basic_ifstream<wchar_t, char_traits<wchar_t> > unicode_ifstream;
<off-topic>
3. unicode text files (saved from notepad, word, etc) have 2 bytes before any text:
characters FE && FF which indicates 2 numbers FFFE or FEFF (I dont know endianess)
What is this? C++ recognize these characters?
</off-topic>
Thank you