[fpc-pascal] JS: \u00C1 = Á; Pascal: $00C1 = ?

silvioprog silvioprog at gmail.com
Thu Jul 24 03:57:06 CEST 2014


On Wed, Jul 23, 2014 at 9:49 PM, Dmitry Boyarintsev <
skalogryz.lists at gmail.com> wrote:

> I'd think that "show" requires a definition here.
>
> For example in LCL application
>
> ShowMessage( utf8encode( WideString(#$00c1)));
> shows Á.
>
> In most unix consoles
>   Writeln( WideString(#$00c1));
> would output the same character as well.
>

It worked like a charm!

I did:

var
  s: WideString;
  sl: TStringList;
begin
  s := #$02229#$0FE00;
  sl := TStringList.Create;
  try
    sl.Text := UTF8Encode(s);
    sl.SaveToFile('test.txt');
  finally
    sl.Free;
  end;
end;

And the content in 'test.txt' is ∩︀ (Windows/Linux).

Thank you very much Dmitry!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140723/4fdf78fb/attachment.html>


More information about the fpc-pascal mailing list