[fpc-devel] Unicode support (again)

Graeme Geldenhuys 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.

var
  s1: string
  s2: TfpgString;  // simply an alias to string
begin
  s1 := 'äüö';
  s2 := 'äüö';
  Button.Text := s1;
  WindowTitle := s2;
end;

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.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/


More information about the fpc-devel mailing list