
2 May
2011
2 May
'11
9:59 p.m.
On 02/05/2011 08:47, Artyom wrote:
It is not enough.
You can't do it in cross platform way properly as you can't currently get UTF-8 or UTF-16 or UTF-32 string literal properly for cross platform code till all compilers will support C++0x u/U/u8 literals and at this point NONE of the existing popular compilers support them (checked MSVC, GCC, Intel, SunCC)
Wide strings literals can perfectly be assumed to be UTF-16 or UTF-32, and that's portable. Also as I suggested you can use a macro that allows the usage of unicode string literals instead where they're available.