Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 75: unexpected code byte
Maurits van Rees <m.van.rees-1kr/[email protected]> Thu, 16 Dec 2010 03:17:18 +0100
| Newsgroups | gmane.comp.web.zope.plone.internationalization |
|---|---|
| Organization | Zest Software |
| Message-ID | <[email protected]> |
Op 16-12-10 01:41, Leonardo Caballero schreef: > Hi guys > > I have been working on offer a better support for i18n and > accessibility for cyn.in and when i run the script rebuildAll.sh in > ubify.policy product it give me the long trace of error like this > > (python2.4)macagua@canaima:~/proyectos/plone/apps/cynin313-source-snapshot-2/src/ubify.policy/ubify/policy/locales$ > rebuildAll.sh > (...) > File "/home/macagua/Aplicaciones/virtualenv/python2.4/lib/python2.4/site-packages/i18ndude-3.2.1-py2.4.egg/i18ndude/extract.py", > line 445, in py_strings > tokenize.tokenize(fp.readline, eater) > File "/usr/lib/python2.4/tokenize.py", line 153, in tokenize > tokenize_loop(readline, tokeneater) > File "/usr/lib/python2.4/tokenize.py", line 159, in tokenize_loop > for token_info in generate_tokens(readline): > File "/usr/lib/python2.4/tokenize.py", line 183, in generate_tokens > line = readline() > File "/usr/lib/python2.4/codecs.py", line 485, in readline > return self.reader.readline(size) > File "/usr/lib/python2.4/codecs.py", line 346, in readline > data = self.read(readsize, firstline=True) > File "/usr/lib/python2.4/codecs.py", line 293, in read > newchars, decodedbytes = self.decode(data, self.errors) > UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position > 75: unexpected code byte > (python2.4)macagua@canaima:~/proyectos/plone/apps/cynin313-source-snapshot/src/ubify.policy/ubify/policy/locales$ > > but still show me this error "UnicodeDecodeError: 'utf8' codec can't > decode byte 0x92 in position 75: unexpected code byte" > > Any ideas? > http://pypi.python.org/pypi/i18ndude says that i18ndude 3.2.2 has a fix for either this or a very similar error, so you can try if upgrading to that version helps. -- Maurits van Rees Programmer, Zest Software ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d