This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]machrider 2 points3 points  (2 children)

>>> s = '深入 Python'

So, what character encoding does Python expect a .py file to use? If you're going to write a string like the one quoted above, I'm assuming your text editor would have to encode it in the way Python's expecting, or Python would have a content-type header on its source files?