Is Qstring worked on ARM device?
-
wrote on 21 Nov 2015, 06:58 last edited by SGaist
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.
-
wrote on 21 Nov 2015, 13:52 last edited by
QString works on every platform that Qt can run. Your problem is nor related to Qt, check PDU creation algorithm.
-
wrote on 22 Nov 2015, 23:39 last edited by
Make sure the ICU library was available when you compiled Qt.
-
wrote on 23 Nov 2015, 13:36 last edited by Leonardo
@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 -
@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
1/7