Secondly, convert the Unicode point which is stored in $EmojiIcon to UTF-16 String ::ConvertFromUtf32($EmojiIcon) After that, convert the value to the UTF-16 string.įirstly, the code below will convert the Hex value to Integer $EmojiIcon = ::toInt32("1F600",16) Converting from Hex to Int32 So first of all we need to remove the U+ from the equation and only keep the Hex value, in this case, 1F600, and then converting the Hex value to Int32. Let’s display the Smiley face emoji which holds the U+1F600 Hex value. Windows Powershell version 5.1 don’t support the Unicode escape character `u, so some small manual work should be done. Using Windows PowerShell 5.1 and ISE to display emojis In short, it’s very convincing to use Windows Terminal and PS7 and show emoji in one-liner of code. The usage of `u is straight forward, `u Windows Terminal and Powershell 7 show a colored Emoji Read more about the PowerShell escape character from Microsoft Docs Please note that the Unicode escape is featured in the Windows Powershell version 7. In other words, this can be done by using the `u Powershell escape character. So let’s start by opening Windows Terminal Windows Terminalįor PowerShell to display the emojis, first remove the U+ and escape the Hex value. Windows Terminal is a very nice console that supports Windows Powershell and tabs, each tab can be a different PowerShell version. The easy way – PS7+ and Windows Terminal to show Powershell emojis In this tutorial, we will use the Smiley Face emoji.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |