[Development] Should we change the default codec of QTextStream to UTF-8?

Thiago Macieira thiago.macieira at intel.com
Thu May 24 19:26:34 CEST 2012

On quinta-feira, 24 de maio de 2012 10.05.50, 1+1=2 wrote:
> At present, when QT_NO_TEXTCODEC is defined, QTextStream use
> QString::fromLatin1() /QString::toLocal8Bit()
> to convert from/to bytes which looks like not very well. So I think it
> will be better to replace them with QUtf8::convertFromUnicode() and
> QUtf8::convertToUnicode().

Keep them Latin1. At least the tools will not screw up user data if they can't 
figure out the locale.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120524/04238e8b/attachment.sig>

More information about the Development mailing list