[Qt-interest] Showing UTF-8 strings
Ellen Kestrel
dragonflykes at gmail.com
Sat Aug 22 09:10:18 CEST 2009
You need put it through QString::fromUtf8 () first, e.g.
QMessageBox::information (this, QString::fromUtf8("Arabic"));
On Sat, Aug 22, 2009 at 1:53 AM, M. Bashir Al-Noimi <mbnoimi at gmx.com> wrote:
> Hi All,
>
> Why Qt can't show UTF-8 strings which written in the source code?
>
> For example:
> I tried to write the following line for showing QMessageBox contains on
> Arabic characters
>
> [image: QMessageBox contains on Arabic characters]
>
> the resultant message after compiling process became:
>
> [image: resultant message after compiling process]
>
> P.S.
> You can find the project in the attached file.
>
> -----
> Best Regards
> Muhammad Bashir Al-Noimi
> My Blog: http://mbnoimi.net/
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090822/764ee38f/attachment.html
More information about the Qt-interest-old
mailing list