Emojis in PowerShell 7 💡

Etwas eigenartig, aber ja, PowerShell 7 kann Emojis ausgeben. Wer in der heutigen Zeit lieber Emojis statt (Fehler)Meldungen sieht hat damit eine Alternative. 👍

Mit PowerShell 7 ist es nicht mehr wirklich schwierig. Wer einen Output im Format `u{Unicode} eingibt wird das Emoji sehen. Unicode ist der Code laut Liste.

Somit kann es losgehen…

"`u{1f609}" + " `u{1f60a}" + " `u{1f64f}"

…, und es klappt nicht. 😔

Die aktuelle Konsole kann den Unicode teils nicht richtig ausgeben. Es gibt ein neues Windows Terminal, via GitHub oder Windows Store. Mit Windows Terminal und PowerShell 7 ist die Darstellung von Emojis richtig. ✅

Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with more than 10 years of professional experience with Microsoft 365 products such as SharePoint Online, SharePoint Premium, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *