On Tue, Nov 11, 2008 at 4:29 PM, Michael Schnell <[EMAIL PROTECTED]> 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/
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to