[fpc-devel] Unicode support (again)

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Nov 10 18:19:56 CET 2008


On Mon, 10 Nov 2008 15:04:01 -0200
"Felipe Monteiro de Carvalho" <felipemonteiro.carvalho at gmail.com> wrote:

> On Mon, Nov 10, 2008 at 1:48 PM, Michael Schnell <mschnell at lumino.de>
> wrote:
> >, ... There are not _slow_ functions that do the "expected" versions
> > of s[i], pos(s), copy(), delete(), ... (I've yet to find out how I
> > can print just the first character of an UTF8String :)
> 
> Lazarus has a set of utf-8 ready routines, using utf-8 inside of a
> ansistring.

Yes. 
Keep in mind that they work in unicode code points. Composed characters
are treated as several units. For example umlaute can be 2 characters
(3 bytes). Same problem for UTF-16 with widestrings. 
We still need a normalize function.


Mattias
 



More information about the fpc-devel mailing list