0

Is it possible to change character encoding in the playground? According to a test I ran, the interpreter can only handle ascii.

Character encoding in the Python interpreter. Can it be changed from ascii to utf-8? I ran this code to see what it could handle: https://code.sololearn.com/c90Eo6XugeEa/?ref=app

8th Dec 2017, 7:28 AM
John Miller
John Miller - avatar
2 Respuestas
+ 1
It seems that utf-8 is not supported here: https://www.sololearn.com/Discuss/94437/printing-unicode https://www.sololearn.com/Discuss/687123/unicodeencodeerror I tried to output unicode in c++ here but failed too. You get ASCII codes if you output chr type of a number; it replies an error if you try hex base number like U+0058.
8th Dec 2017, 10:58 AM
Hanz
Hanz - avatar
+ 1
Agreed, I tried the same things in Python.
8th Dec 2017, 10:59 AM
John Miller
John Miller - avatar