I'm using ITextSceneNode to show players names.
Name can be written in Russian.
I get it from server, convert from Java to C++ through JNI.
(GetStringUTFChars)
As a result I get name as const char*.
ITextSceneNode requires text as wchar_t*.
To convert the text from const char* to wchar_t*
i'm using stringw
Code: Select all
Name = stringw(my_utf_char_string)
Code: Select all
smgr->addTextSceneNode(font,
Name.c_str(),
SColor(100, 255, 255, 255),
playerNode,
position,
-1);
When I'm using English symbols they are displayed correctly.
Font 'font' contains cyrillic symbols.
What I'm doing wrong?
Thank you!