hlaueriksson / GEmojiSharp

:octocat: GitHub Emoji for C#, ASP.NET Core and Blazor, dotnet tool for the terminal and PowerToys Run plugin
https://hlaueriksson.github.io/GEmojiSharp/
MIT License
116 stars 8 forks source link

GemojsSharp v2.0.0 not show symbols in visual studio 17.3.2(build 24) in Console.WriteLine #19

Closed gh250100 closed 2 years ago

gh250100 commented 2 years ago

hello ,

visual studio version 17.3.2(build 24)(on Mac)

emoji symbol not show in build output but in debug its fine .

build output: Console.WriteLine shows (??=)

image

in debug mode: when hovering on the variable symbol are fine

image

thanks in advance

hlaueriksson commented 2 years ago

You need to set the correct output encoding. An example from the GEmojiSharp.DotnetTool:

https://github.com/hlaueriksson/GEmojiSharp/blob/c7ddef7b102b9634c826d21d385471425bc14200/src/GEmojiSharp.DotnetTool/Program.cs#L6

gh250100 commented 2 years ago

You need to set the correct output encoding. An example from the GEmojiSharp.DotnetTool:

https://github.com/hlaueriksson/GEmojiSharp/blob/c7ddef7b102b9634c826d21d385471425bc14200/src/GEmojiSharp.DotnetTool/Program.cs#L6

thanks for replaying , I tried it but it didn't work , everything works fine for me until VISUAL STUDIO got update , when I run the same thing in VISUAL CODE its show the symbol fine

hlaueriksson commented 2 years ago

Is is the integrated terminal in Visual Studio for Mac that is broken?

What happens if you dotnet run your project in the MacOS Terminal?

gh250100 commented 2 years ago

Is is the integrated terminal in Visual Studio for Mac that is broken?

What happens if you dotnet run your project in the MacOS Terminal?

yes its look like the integrated terminal in Visual Studio on Mac is broken on that version ,

image

when run it from terminal in Mac with dotnet run it works fine

hlaueriksson commented 2 years ago

Maybe you can get it fixed by reporting a bug to the Visual Studio for Mac team.