Home python in pycharm file in Russian (dictionary of the Russian language) is displayed...

in pycharm file in Russian (dictionary of the Russian language) is displayed incomprehensible symbols

Author

Date

Category

Here is a piece of code in which you want to enter the word, then read the file, a copy of all text to the variable, and output to the screen:

first_gamer_word = input ("First Player \ N")
File = Open ('D: \\ russian_nounts.txt', 'R')
text = file.read ()
File.Close ()
PRINT (text)

Here is an example of what Pycharm is issued:

p ° p ± r ° ¶WITHѓѓ
P ° P ± R ° ¶WITHѓWITHђWITH ‡ RUR
P ° p ± p · r ·
P ° P ± R ° P · RURS
P ° p ± p · r · roerѕrμs †

Answer 1, Authority 100%

first_gamer_word = input ("First Player \ N")
File = Open ('D: \\ russian_nounts.txt', 'R', Encoding = 'UTF-8')
text = file.read ()
File.Close ()
PRINT (text)

stdout :

lampshade
Abazurchik
Abaz
Abazin
Abazinets

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions