Arabic problem Qt app on Window mobile
-
hi,
i made a Qt app and then cross complied it for Windows Mobile
it works fine but the Arabic letter was squares ,
then i installed "Multilingual support"
Arabic letter are read in all the mobile but inside the Qt app the letter are separated
like
م ح م و د م م د و حbut must be
محمود ممدوح
any idea on how to them normal Arabicthx in advance
-
hi..
I think you should use json..for this -
imrrk, sorry? how is JSON related to arabic letters support?
-
[quote author="MamdouhAlShamy" date="1292861985"]hi,
i made a Qt app and then cross complied it for Windows Mobile
it works fine but the Arabic letter was squares ,
[/quote]Can you post some sample code?
-
it dont need code example
i just put text in label like
label->setText("محمود ممدوح");i get label with
م ح م و د م م د و حit is the same work but each letter is separated with space
-
Seems to be an encoding problem. Did you save your source file with UTF-8 encoding and did you add this to your .pro file:
@
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
@ -
i added them and still no change
-
Does it work on a regular desktop environment?
-
i tried it on Simulator and on HTC Touch
has the same problem -
But have you tried it at desktop? Not under simulator, but at normal desktop environment.
-
under Desktop it works FINE
-
-
Dude your quick! :o
-
it seems to be the solution
but how to use it ?? -
Sample:
@#include "PAText.h"
using namespace QPlugs;void Widget::Test()
{
ui->textBrowser->setText(PAText::Translate("تست ميشود Testing"));
}@ -
thx
u did an amazing classGod bless you
-
It's my pleasure! Hope it would be useful for all. :-)