-1

i want to ask if is possible to add in a string the "⚠" character and make it executable in console with Console.WriteLine().

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Giulios
  • 3
  • 1
  • Perhaps you can get idea from this link: https://stackoverflow.com/questions/4511098/print-ascii-line-art-characters-in-c-sharp-console-application – Azaz ul Haq Dec 29 '18 at 14:07
  • 1
    You should check: [How to write Unicode characters to the console?](https://stackoverflow.com/questions/5750203/how-to-write-unicode-characters-to-the-console) – Jeroen van Langen Dec 29 '18 at 14:17

1 Answers1

2

you can use this code;

System.Console.OutputEncoding = System.Text.Encoding.Unicode;
Console.WriteLine("⚠");