use unicode in ARM

hani
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 but in
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);
    }

  }
-------------------------------------------------------