Re: [Qt-jambi-interest] codecForTr

2008-04-07 Thread Tomasz 'Trog' Welman
On Mon, 7 Apr 2008, Eskil Abrahamsen Blomfeldt wrote: > Hi, Tomasz. > > In your case I would read the 8-bit encoded files into e.g. a QByteArray to > avoid the implicit conversion to unicode, convert the byte array to unicode > using QTextCodec and then setting this string directly on the QLineE

Re: [Qt-jambi-interest] codecForTr

2008-04-07 Thread Eskil Abrahamsen Blomfeldt
Hi, Tomasz. Tomasz 'Trog' Welman wrote: I've just one problem. QTextCodec.codecForLocale() returns "System", which is... annoying, because when I run an application (having utf-8 as my base encoding), which reads iso2 files into string, converts this string to unicode, and then (from unicode)

Re: [Qt-jambi-interest] codecForTr

2008-04-07 Thread Tomasz 'Trog' Welman
On Mon, 7 Apr 2008, Eskil Abrahamsen Blomfeldt wrote: > Hi, Tomasz. > > Tomasz 'Trog' Welman wrote: >> What is the explanation for the absence of codecForTr/setCodecForTr >> in Qt Jambi? >> > > I believe this is because tr() is used with strings (so that they can be > automatically detected as t

Re: [Qt-jambi-interest] codecForTr

2008-04-06 Thread Eskil Abrahamsen Blomfeldt
Hi, Tomasz. Tomasz 'Trog' Welman wrote: > What is the explanation for the absence of codecForTr/setCodecForTr > in Qt Jambi? > I believe this is because tr() is used with strings (so that they can be automatically detected as translatable) and Java strings are always encoded in 16-bit unicod

[Qt-jambi-interest] codecForTr

2008-04-06 Thread Tomasz 'Trog' Welman
Hi, What is the explanation for the absence of codecForTr/setCodecForTr in Qt Jambi? -- Tomasz 'Trog' Welman ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest