Answer the question
In order to leave comments, you need to log in
How to teach bourgeois Ubuntu great and mighty?
There is a remote AWS machine (Ubuntu Server) and there is a python script that writes (or rather does not write) Cyrillic to a file. When it comes to writing a line:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 22-23: ordinal not in range(128)
def history(RUstr):
print(RUstr)
h = open('history.txt', 'a')
h.write(RUstr)
h.write('\n')
h.close()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question