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

1+1=2 dbzhang800 at gmail.com
Thu May 24 22:15:16 CEST 2012


On Thu, May 24, 2012 at 12:47 PM, Thiago Macieira
<thiago.macieira at intel.com> wrote:
> For user applications (that is, other than qmake, moc, uic, etc.) that turned
> off QTextCodec, there's nothing that we can do. If you turn off the concept of
> codecs, then you can't change it.
>
Then

If we want to bootstrap tool such as qmake support utf8, we must use
QUtf8::convert{From/To}Unicode(),
as QString::{from/to}Utf8() can not provide ConverterState information
and QTextStream is nearly useless at bootstrap mode.



More information about the Development mailing list