[Qt-interest] Accented characters and QDom in Windows
Thiago Macieira
thiago.macieira at trolltech.com
Thu Aug 20 23:16:31 CEST 2009
Ellen Kestrel wrote:
>Thanks, changing that line made it work perfectly.
>
>Are there other instances when I should be worrying about specifying
> text encodings in cross-platform apps? I have noticed that in display
> widgets the linux apps will display weird characters that the Windows
> apps won't, but I don't know if that's related at all, or if it's just
> a matter of not having Windows configured properly.
Add this to your .pro file:
DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
All your encoding issues will pop up as compilation errors.
The reason that is not enabled by default is that it also shows as
compilation errors many things that you know to be right. But it's a good
practice to clean up your code of Unicode issues.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Development Frameworks
Sandakerveien 116, NO-0402 Oslo, Norway
Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14 San Francisco, California: Nov 2 - 4
http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090820/b8cf5df9/attachment.bin
More information about the Qt-interest-old
mailing list