[Qt-interest] How to compress QString

Jan Kundra't jkt at gentoo.org
Thu Apr 16 14:01:25 CEST 2009


Iurii Gordiienko wrote:
> We can't convert UNICODE string to UTF-8 because data will be loss.

That's not true. You don't gain any single additional character when
going with UTF-16. Both UTF-8 and UTF-16 are just different methods of
encoding the same Unicode character space. You can find some additional
resources at [1]. However, as QString internally stores its data in
UTF-16, sticking with UTF-16 might indeed make sense and provide better
performance.

Cheers,
-jkt

[1] http://en.wikipedia.org/wiki/UTF-8

-- 
cd /local/pub && more beer > /dev/mouth

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090416/90ba3198/attachment.bin 


More information about the Qt-interest-old mailing list