[fpc-devel] Unicode support (again)
graemeg.lists at gmail.com
Tue Nov 11 16:47:15 CET 2008
On Tue, Nov 11, 2008 at 4:29 PM, Michael Schnell <mschnell at lumino.de> wrote:
> With Lazarus even:
I don't know about Lazarus, but in fpGUI Toolkit the following works just fine.
s2: TfpgString; // simply an alias to string
s1 := 'äüö';
s2 := 'äüö';
Button.Text := s1;
WindowTitle := s2;
fpGUI takes care of the conversion for you. It internally uses UTF-8.
But manipulating strings etc becomes a pain because you can't use the
standard Pos, Length etc functions, you have to use the fpGUI
equivalent. Same for things like FileExists() for example. You have to
use fpgFileExits() instead.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the fpc-devel