[devel] python & utf8

REAL real на kemsu.ru
Пт Ноя 29 12:01:34 MSK 2013


Привет!

Что может помочь в такой ситуации?

Traceback (most recent call last):
   File "/usr/bin/2to3", line 5, in <module>
     sys.exit(main("lib2to3.fixes"))
   File "/usr/lib64/python2.7/lib2to3/main.py", line 260, in main
     options.processes)
   File "/usr/lib64/python2.7/lib2to3/refactor.py", line 706, in refactor
     items, write, doctests_only)
   File "/usr/lib64/python2.7/lib2to3/refactor.py", line 301, in refactor
     self.refactor_file(dir_or_file, write, doctests_only)
   File "/usr/lib64/python2.7/lib2to3/refactor.py", line 747, in 
refactor_file
     *args, **kwargs)
   File "/usr/lib64/python2.7/lib2to3/refactor.py", line 341, in 
refactor_file
     input, encoding = self._read_python_source(filename)
   File "/usr/lib64/python2.7/lib2to3/refactor.py", line 337, in 
_read_python_source
     return _from_system_newlines(f.read()), encoding
   File "/usr/lib64/python2.7/codecs.py", line 671, in read
     return self.reader.read(size)
   File "/usr/lib64/python2.7/codecs.py", line 477, in read
     newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc8 in position 
99: invalid continuation byte

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ



Подробная информация о списке рассылки Devel