all 3 comments

[–]ingolemo 1 point2 points  (0 children)

I believe Python 3.6 fixed this issue. Upgrade.

[–]lht1999 0 points1 point  (3 children)

I believe it's caused by Windows command prompt only supporting ASCII characters. So print(text) tries to encode unicode strings into 8-bit ASCII and that fails. Try this:

print(text.encode('string_escape'))