Am 01.12.2024 um 14:37 schrieb Hairy Pixels via fpc-pascal:
On Dec 1, 2024 at 2:23:08 PM, Nikolay Nikolov via fpc-pascal
wrote:
Here's how Free Pascal types map to Unicode terminology:
WideChar = UTF-16 code unit
UnicodeString = UTF-16 encoded string
WideString = UTF-16 encoded string. On Wi
#x27;Unicode scalar 1F496: ', WideChar($1F496)); // 💖
Note that these only work if you do NOT use the CRT unit.
James
From: fpc-pascal On Behalf Of Hairy
Pixels via fpc-pascal
Sent: Sunday, December 1, 2024 1:14 AM
To: FPC-Pascal discussions
Cc: Hairy Pixels
Subject: [fpc-pascal] Printing u
On Dec 1, 2024 at 2:02:06 PM, Adriaan van Os via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:
> They call that "Unicode", which is plain nonsense. In the real world, one
> can not stuff 21-bits
> into 16-bits.
>
> For heaven's sake, let's stop talking about so-called "Unicode" and
> inste
On Dec 1, 2024 at 2:23:08 PM, Nikolay Nikolov via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:
> Here's how Free Pascal types map to Unicode terminology:
>
> WideChar = UTF-16 code unit
>
> UnicodeString = UTF-16 encoded string
>
> WideString = UTF-16 encoded string. On Windows it's not r
On 12/1/24 9:02 AM, Adriaan van Os via fpc-pascal wrote:
Hairy Pixels via fpc-pascal wrote:
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: ', #$
Hairy Pixels via fpc-pascal wrote:
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($
On 12/1/24 8:14 AM, Hairy Pixels via fpc-pascal wrote:
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); // 💖
This works for me under L
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 Josep