Is Qstring worked on ARM device?
-
Hi. I want to send Unicode ( Persian ) sms with my ARM (mini2440) .
i test my program from my PC with Ubuntu OS. my program is worked well, but in (mini2440)
ARM not worked.
this is my code to convert Unicode to hex value :if (TextisUnicode(text))
{
QString qstr=QString::fromStdString(text);
QChar ch;
for (i = 0 ; i<qstr.length();i++)
{
ch=qstr.at(i);
t = ch.unicode();
out1 = out1 + HexToStr(t/256);
out1 = out1 + HexToStr(t%256);
}}
but this is not worked in mini2440!!! there is no error. it sends me an sms with wrong characters.
-
QString works on every platform that Qt can run. Your problem is nor related to Qt, check PDU creation algorithm.
-
@MhM93 ICU is the library that adds Unicode support to Qt. You can check whether it's available at the end of the configure script.
Support enabled for:
Accessibility .......... yes
ALSA ................... no
CUPS ................... no
Evdev .................. no
FontConfig ............. no
FreeType ............... qt
Glib ................... no
GStreamer .............. no
GTK theme .............. no
HarfBuzz ............... yes (bundled copy)
Iconv .................. no
ICU .................... no
Image formats:
GIF .................. no
JPEG ................. yes (in QtGui, using bundled copy)
PNG .................. yes (in QtGui, using bundled copy)
journald ............... no