I have a problem, I need to use UTF-8 encoded strings on standard char types in C++ source code like so:
char* twochars = "\xe6\x97\xa5\xd1\x88";
Normally, if I want to write an UTF-8 character I need to use octets like above. Is there something in Visual Studio (I'm using VS 2013 Ultimate) that could allow me to just write for example "ĄĘĆŻ" and automagically converted each character to multiple UTF-8 octets like in the example above? Or should I use const wchar_t*
and find a lib that could convert wide strings to UTF-8 encoded standard char strings?
If there is no such thing, could you suggest any external software for that? I really don't feel like browsing the character map for every symbol/non-latin letter.
Sorry for my English, Thanks in advance.