[fpc-pascal] Printing unicode characters

Hairy Pixels genericptr at gmail.com
Sun Dec 1 07:14:11 CET 2024


ChatGPT is saying I can  print unicode scalars like that but i don’t see it
works and no compiler warnings even. Did it make this up or did I do
something wrong?

  Writeln('Unicode scalar 1F496: ', #$1F496); // 💖
  Writeln('Unicode scalar 1F496: ', WideChar($1F496));  // 💖

Regards,
    Ryan Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20241130/02b0eb5d/attachment.htm>


More information about the fpc-pascal mailing list