I need to convert a string to a wchar_t. I have tried a lot of different approaches, but I keep having problems with Cyrillic text. When using wcout to debug, I keep getting wrong output, but when just using Latin characters, no problems arise.
So how can I convert a string containing Cyrillic characters to a wchar_t?
upd:
I found the problem, I made a mistake when used wcout to debug, I all time was getting wrong output. But i manually rechecked character codes and it is realy UTF-16. I dont know how to make correct output UTF-16 into console by wcout, but it is not so important for me.