0

I'm trying to write cyrillic symbols to output:

// scr.csx
using System;
Console.WriteLine("asd ПРИВЕТ");

But it is not displayed as expected when I run it:

> scriptcs scr
asd ??????

I've tried to save scr.csx in different encodings, it does not help.

astef
  • 8,575
  • 4
  • 56
  • 95

1 Answers1

1

Add this line before outputting:

Console.OutputEncoding = System.Text.Encoding.UTF8;
Devin L.
  • 437
  • 2
  • 12