Not working emoji in PowerShell

Артем Васенков 1 Reputation point
2022-10-29T08:49:08.823+00:00
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Zain Choudry 6 Reputation points
    2022-10-30T07:31:37.06+00:00

    Which terminal are you using?

    Have you tried using Windows Terminal? https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-gb&gl=gb

    0 comments No comments

  2. Rich Matheisen 47,901 Reputation points
    2022-10-30T14:55:28.327+00:00

    Check the code page in that session: [System.Text.Encoding]::Default

    If it's 20866 (koi8-r) or 20880 (IBM880), try changing it to 65001 (utf-8). Make sure you're using a TrueType font, too.

    0 comments No comments

  3. Rich Matheisen 47,901 Reputation points
    2022-10-30T14:55:28.417+00:00

    Check the code page in that session: [System.Text.Encoding]::Default

    If it's 20866 (koi8-r) or 20880 (IBM880), try changing it to 65001 (utf-8). Make sure you're using a TrueType font, too.

    0 comments No comments

  4. Limitless Technology 44,751 Reputation points
    2022-11-03T14:39:00.587+00:00

    Hello there,

    Try using UTF32 instead of Unicode and see if that helps. "`u{}" is a way to escape a Unicode character to be interpreted by Powershell. This is built into Powershell itself.

    Emojis look like images or icons, but they are not. They are letters (characters) from the UTF-8 (Unicode) character set. UTF-8 covers almost all of the characters and symbols in the world.

    ------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.