[fpc-devel] Unicode resource strings

Martin Schreiber mse00000 at gmail.com
Tue Aug 21 10:13:56 CEST 2012


On Tuesday 21 August 2012 09:56:57 Ivanko B wrote:
> For non-fixed char length there's nothing better than UTF8 (default
> ASCII compatible, ready for any future alphabets,..). For fixed-char
> length (fast string operations etc) also there's nothing better than
> UCS-2 (the Earth coverage ) & UCS-4 (the galaxy coverage).
> The non-fixed char length UTF-16 (UCS-2 + surrogate pairs) looks less
> efficient than UTF-8 almost from any look point.

I disagree. Handling 1..4(6) bytes is less efficient than handling surrogate 
*pairs*.

Martin



More information about the fpc-devel mailing list