C
C#13mo ago
DragonToast

❔ ✅ I can't use most unicode characters in my program

Hello, I am quite new to coding and in order to improve I decided to create a simple game that could be played in the output window of visual studio 2022. However when I try to use unicode it either switches it out for a questionmark or it leaves it blank. This is the unicode character I'm trying to use "U+25CA" and it is supposedly supported by consolas (https://www.fileformat.info/info/unicode/char/25ca/fontsupport.htmto). I have tried changing the font of the output window but it has had no effect. The only character out of the ones I have tested that worked was "U+2588". I honestly have no clue what to do at this point, does anyone know how I could use this unicode character for my program?
7 Replies
ZacharyPatten
ZacharyPatten13mo ago
yeah try something like Console.OutputEncoding = Encoding.UTF8; or one of the other encodings depending on your needs you have to do that before you write to the console, so might want to do that first thing your code starts also what kinda game are you making? 🙂
DragonToast
DragonToastOP13mo ago
Thank you so much, it works perfectly thankuwu making a game where the player is put in different scenarios and get to chose actions based on what type of scenario it is. For example I have a combat scenario where you have to chose between fighting, bribing the enemy to get away, or just running. If you enter combat you can either attack or block. there are also items you can get from killing enemies or just find that make you stronger and make you take less damage.
ZacharyPatten
ZacharyPatten13mo ago
so a text-based choose your own adventure with some light RPG combat 🙂 nice let me know if you want any examples
DragonToast
DragonToastOP13mo ago
👍 😁 Btw what happens to this post now? Am i supposed to close it or mark it as done somehow?
ZacharyPatten
ZacharyPatten13mo ago
if you no longer need assistance then yes please close it by typing (i think) \close
Accord
Accord13mo ago
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. 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.
Want results from more Discord servers?
Add your server