-
My code is , And there is no chinese in my repo path。 And an exception was found.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Strangely enough it looks like I have seen this before. The problem seems to be that the python interpreter default code is It looks like this is how you change the default encoding. |
Beta Was this translation helpful? Give feedback.
-
Some further information: On Windows Python can be made to use UTF-8 instead of the ANSI active code page by running the interpreter with Python will also use UTF-8 when instructed to do so, by passing Unlike other systems where the most closely related locale settings are more readily changed and can be changed easily for specific commands using simple and well-documented techniques, the ANSI active code page on a Windows system is a system-level setting (unlike the interface language setting and preferred language settings), which can be changed, but only for the whole system, and this is rarely done. This post and its linked sources provide some more information about that. Windows can also be made to use UTF-8 where it would otherwise use a localized code page, though this is considered "beta" and some applications might have problems. |
Beta Was this translation helpful? Give feedback.
Strangely enough it looks like I have seen this before.
The problem seems to be that the python interpreter default code is
gbk
, but should beutf-8
for most purposes. It can be changed on startup I think.It looks like this is how you change the default encoding.