I updated Win10 on Friday. cmd.exe starts:

Microsoft Windows [Version 10.0.19045.3636] (c) Microsoft Corporation. All rights reserved. C:\Users\ken>

Your PowerShell commands:

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\Users\ken> $joiner = [char]::ConvertFromUtf32(0x200D) PS C:\Users\ken> $pc = [char]::ConvertFromUtf32(0x1F4BB) PS C:\Users\ken> $man = [char]::ConvertFromUtf32(0x1F468) PS C:\Users\ken> $person = [char]::ConvertFromUtf32(0x1F9D1)
PS C:\Users\ken> "$man"
👨
PS C:\Users\ken> "$person"
🧑
PS C:\Users\ken> "$person$joiner$pc"
🧑‍💻
PS C:\Users\ken> "$man$joiner$pc"
👨‍💻
PS C:\Users\ken>

Except in the PowerShell window, all of those glyphs just appear as a square with a question mark inside. So, it would appear that the character information is kept: not rendered in the CLI but is rendered in the browser.

I also updated Cygwin on Friday.

$ uname -a CYGWIN_NT-10.0-19045 titan 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 +Cygwin

Your bash commands:

$ echo -e '\U1F468'
👨

$ echo -e '\U1F9D1'
🧑

$ echo -e '\U1F468\U200D\U1F4BB'
👨‍💻

$ echo -e '\U1F9D1\U200D\U1F4BB'
🧑‍💻

Except in the CLI (/usr/bin/mintty) all glyphs just appeared in their text forms. Also, the ZWJ sequence above, appeared as two separate glyphs: MAN + PC.

— Ken


In reply to Re^6: Perl Secret Operator Emojis by kcott
in thread Perl Secret Operator Emojis by eyepopslikeamosquito

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.