Hello,
I want to use unicode in my app. By that I mean that it should be able to read and write to files in unicode. Obviously that means that I should also use it internally.
I've read the tutorial, and many others I found via google, but it only made me more confused
(assume I use windows nt or above, though it would be nice to have cross-platform support like linux or mac)
Also, if needed, some nice open source library is welcome if you know a good one.
- what do I use to store data? wchar_t? The tutorial says that it's recommended to use something like an unsigned long... How do I store strings then? Create my own class, or will wstring do?
- File input output. Are there functions that detect the encoding nicely (utf-8, 16LE/BE, ...) or should I do it myself (BOM detection)?
- Once the encoding is detected, what functions exist to read to a string, and convert to the internal storage I chose in 1?
Thanks a lot in advance...