Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.



  • Make sure the ICU library was available when you compiled Qt.



  • @Leonardo : thanks. but what is ICU library? and how to check it?



  • @MhM93

    Hi,
    You should have ICU file on side your project : icuin54, icuuc54 and icudt54



  • @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



  • @Leonardo : thanks.
    @Kambiz : thanks


Log in to reply