7

I get this error in Eclipse while working on "Byte of Python"

It says the error shows up in 2 lines:

source = ["C:\\My Documents", "C:\\Code"]

and

zip_command = "zip -qr {0} {1}".format(target, ‚ ‚.join(source))

I cant really figure out what im doing wrong here.

Here's the full error:

SyntaxError: Non-UTF-8 code starting with '\x82' on line x, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

4

1 回答 1

3

您正在使用windows-1252无法解码的字符(弯引号),因为它无效utf-8。替换引号,您就可以开始了。

于 2013-03-24T19:17:52.443 回答