Что с русским языком в С# | Sololearn: Learn to code for FREE!


Что с русским языком в С#

Пишу в Sololern код на С#, но при выводе результата в консоль вместо русских букв выводит знаки вопроса, с английской раскладкой таких проблем нет

4/10/2021 11:44:32 AM

G V a r K

2 Answers

New Answer


Text uses a codepage to print the correct character. The codepage in the sololearn playground is ASCIIEncoding. Unfortunately this cannot be changed in the sololearn playground. The playground cannot display russian. https://www.sololearn.com/Discuss/1215700/?ref=app To print russian you need to set the codepage to UTF8. The link is about python but applies to C# as well. https://code.sololearn.com/c7ODQs6P4My3/?ref=app Have a look at this youtube video from angelsix https://www.youtube.com/watch?v=iWpHF-5uYdg&list=PLrW43fNmjaQVSmaezCeU-Hm4sMs2uKzYN&index=14


sneeze thank you) 🙏