in reply to Re^4: Perl Secret Operator Emojis
in thread Perl Secret Operator Emojis

I believe we're running into the same sort of issue we had with GINGER ROOT

Agreed.

I suspect you're seeing just three glyphs: ⚖️ & 🦪, followed by one that looks similar to 👨‍💻 (please confirm).

Confirmed.

Had I wrapped them in several "big" tags, I no doubt would have noticed the difference

Agreed. MAN and ADULT look very similar on my PC! I need to magnify the window to notice any difference. :)

For cheap thrills, just like last time, I've taken Perl and the Browser out of the equation by running the following commands in both a PowerShell window on Windows 11 and a bash window on Ubuntu 22.04.1.

PowerShell on Windows 11:

PS C:\> $joiner = [char]::ConvertFromUtf32(0x200D) PS C:\> $pc = [char]::ConvertFromUtf32(0x1F4BB) PS C:\> $man = [char]::ConvertFromUtf32(0x1F468) PS C:\> $person = [char]::ConvertFromUtf32(0x1F9D1)

PS C:\> "$man"
👨
PS C:\> "$person"
🧑
PS C:\> "$person$joiner$pc"
🧑‍💻
PS C:\> "$man$joiner$pc"
👨‍💻
PS C:\>

bash on Ubuntu:

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

See Also

Updated: added See Also section.

👁️🍾👍🦟

Replies are listed 'Best First'.
Re^6: Perl Secret Operator Emojis
by kcott (Archbishop) on Nov 07, 2023 at 14:55 UTC

    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