[Lazarus] FlipText

silvioprog silvioprog at gmail.com
Wed Oct 20 23:06:15 CEST 2010


2010/10/20 Sven Barth <pascaldragon at googlemail.com>

> If you're using Lazarus you can do
>
> Canvas.TextOut(x, y, Utf8Encode(#$01dd));
>
> When you're using Linux and you want to print on a utf8 stdout you can use
>
> Writeln(Utf8Encode(#$01dd));
>
> Utf8Encode(WideString) converts an UTF-16 (fixed character length) string
> to an UTF-8 (dynamic character length) string (Utf8Decode is the reverse).
>
> Regards,
> Sven


Fail: :(

procedure TForm1.Button1Click(Sender: TObject);
begin
  Caption := Utf8Encode(#$01dd);
end;

Error:

----
unit1.pas(35,14) Error: Can't determine which overloaded function to call

And:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Caption := Utf8Encode(chr($01dd));
end;

Return Ý, and not ǝ (u01DD = ǝ: http://www.wilsonmar.com/1unicode.htm) :(

-- 
Silvio Clécio,
*programmer* *ObjectPascal*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20101020/b155b946/attachment-0004.html>


More information about the Lazarus mailing list