[webkit-dev] Proposal: Use ICU in WebKit code

Alexey Proskuryakov ap at webkit.org
Sun Oct 6 21:14:08 PDT 2013

05.10.2013, в 04:09, Konstantin Tokarev <annulen at yandex.ru> написал(а):

> There is an issue with ICU: it uses UTF16 as its internal representation, while most of the Web nowadays is UTF8. Therefore, page text goes through unnecessary encoding conversion, and takes more memory than in UTF8 (for most of languages). So it might be not a good development direction to tie up WebKit to ICU.

UTF-8 decoding is performed by a custom codec in WTF, we don't use ICU for that.

So the question of which internal representation to use for strings that were UTF-8 on the wire is orthogonal to whether we use ICU directly or through an abstraction layer.

- WBR, Alexey Proskuryakov

More information about the webkit-dev mailing list