alirezanet / Husky.Net

Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
https://alirezanet.github.io/Husky.Net/
MIT License
632 stars 29 forks source link

Emoji does not appear correctly in the Windows environment #35

Closed acesyde closed 2 years ago

acesyde commented 2 years ago

Version

0.4.0

Details

When we are on the Windows environment emoji in console does not rendered correctly

Windows image

Linux image

Terminal => Windows terminal OS : Windows 11 / Ubuntu 20.04 (WSL2)

Steps to reproduce

acesyde commented 2 years ago

But "Great work!" works fine Oo

image

alirezanet commented 2 years ago

I know windows 10 and below don't support emojis but it should work fine in windows 11 at least.
what is your terminal font? can you try a powerline font to see what happens? image

acesyde commented 2 years ago

I have the same behavior between windows 10 and 11

image

acesyde commented 2 years ago

Same with monaco for powerline

image

alirezanet commented 2 years ago

Weird, I never had this problem with windows 11. Is your windows terminal updated? mine is 1.11.3471.0 also make sure to set your default profile to Powershell, cmd doesn't support any Unicode characters. image

also check out this link: https://stackoverflow.com/questions/388490/how-to-use-unicode-characters-in-windows-command-line

image

acesyde commented 2 years ago

So after enabling this feature

image

Tadam

image

acesyde commented 2 years ago

@alirezanet maybe add this information in the documentation ?

alirezanet commented 2 years ago

Good idea 😊