C
C#

help

❔ How do I write Ø in a .NET framework Console application?

UUNKNØWN2/12/2023
When I use Ø it gets outputted as O
MMODiX2/12/2023
Angius#1586
REPL Result: Success
Console.Write("Ø");
Console.Write("Ø");
Console Output
Ø
Ø
Compile: 487.105ms | Execution: 64.813ms | React with ❌ to remove this embed.
AAngius2/12/2023
Seeing how it works in the repl, it's probably the fault of the terminal you're using Either the font has this character missing, or some terminal setting is responsible How to fix it with code, then? Chances are you can't
UUNKNØWN2/12/2023
I don't suppose you can make the application use a custom font and then embed it so the user doesn't need to install it?
AAngius2/12/2023
No, it's the terminal's setting
UUNKNØWN2/12/2023
I see, thank you for the help regardless
AAngius2/12/2023
You could try using
Console.OutputEncoding = System.Text.Encoding.UTF8;
Console.OutputEncoding = System.Text.Encoding.UTF8;
This should force the encoding to be UTF-8 Whether the terminal supports it or not, is still another matter, though
UUNKNØWN2/12/2023
that did it, thank you 🙂
AAngius2/12/2023
Nice
BBuddy2/12/2023
What are you making? catpog
UUNKNØWN2/12/2023
Just a simple application that automatically sets custom settings within Windows like; 24 hour clock, small taskbar etc..
AAccord2/13/2023
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
❔ How to deal with authentication/authorization in a Razor Page application through a webapiHow do you deal with authentication/authorization when you have a backend that sends you a jwt to yo✅ ForeignKey Entity Framework and IdentityI've got the following classes: "Account", "Post", "Tag" and "Image". The "Post" class contains the✅ Soft Deletions with EF CoreHey, instead of deleting the entry from the DB directly I am setting a ``IsDeleted`` property to truinaccessible code?Maybe I'm stupid and I don't see what's going on, but I got an "inaccessible code" error and I don't❔ ASP.NET builtin cache vs Redis Cache ?Hi do we need redis if asp.net 7 already have http cache ?✅ Error when including a project reference in a Blazor WASM projectI'm getting an error `There was no runtime pack for Microsoft.AspNetCore.App available for the speciTraveling salesman problemThis is the problem: A student is employed as a courier in a firm with n points where he has to deli❔ help with codewhat is the problem in this code?❔ What is the difference between these two pieces of code?```cs static PlayerHandler HPlayer => Program.HPlayer; ``` ```cs static PlayerHandler HPlayer = Prog❔ Questions about popupsI'm newer to the UI via xaml + c# space, so I have a question about creation like shown here in the ❔ Microservice: User information being split up in IdentityProvider and ServiceProviderMicroservice: User information being split up in IdentityProvider and ServiceProvider This will req❔ Optimization thoughts on a loop.Looking for potential ways to speed up this operation. Any thoughts? The entries of each HashSet wil❔ How to shorten switch statement```cs public void SwitchAvailability(string koalaName) { switch(koalaNam❔ BinaryFormatter does not serialize/deserialize the Tags of listview itemsso i have a listview that i want to serialize and then desirialize. I store some values in the tags ❔ ✅ Using generics that implement IEqualityOperators results in ambiguous call to the == operatorIf I have some `T: IEqualityOperators<T, T, bool>` and use a LINQ query such as `myTs.FirstOrDefault✅ Simple questionI have a code which ```cs if ("any" is "item1" or "item2" or "any") { Console.WriteLine("okay");Hi im not sure that my code is working as it should(class in c sharp)providing code here👇(When i add +1 or +10 to the GetX or GetY isn't it supossed to change?)❔ VISUAL STUDIO C# DATABASE AND LISTBOXI am currently working on my assignment and am stuck on this issue Where I have a Database to fetch❔ Sprites are invisible in build?i can see everything in the engine (unity) and ive gone over a bunch of things even checking my came❔ Hi,my flappy bird game script isnt workingThe script in making is to show that the score counter incrreases when the gamobject(bird) collides