Firstly, I'm using
Visual Studio 2013 uses(UTF-8 without signature option) and
Label::createWithTTF method to write Arabic text, It appear like the following.
The previous arabic text has not been written correctly, It was supposed to look like this
السلام عليكم, and it also supposed the Arabic language belong to Unicode encoding.
auto label = Label::createWithTTF("السلام عليكم", "fonts/arial.ttf", 34);
Is there any way to solve that problem ?
I have applied what in this link [ Right-to-left mark ] and the result was disappearance the Arabic text as in the following picture.
auto label = Label::createWithTTF("\u200fالسلام عليكم", "fonts/arial.ttf", 34); label->setAlignment(TextHAlignment::RIGHT);
The problem still exists.