On 17 Nov 2010, at 13:44, Michael Schnell wrote:

In fact I was not aware of the UTF-16 coding scheme. I _supposed_ it would work similar as UTF-8 (highest bit set => 32 bit value composed from the 31 remaining bits of this and the next word and bit 31 reset) and thus could be decoded algorithmically. Seemingly I was wrong and a huge table is needed to decode UTF16.

You don't need any table, see utf16toutf32 in 
http://svn.freepascal.org/svn/fpc/trunk/rtl/inc/wstrings.inc


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to