UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 13: ordinal not in range(128)
Max Erickson
maxerickson at gmail.com
Thu Jul 16 11:31:36 EDT 2009
akhil1988 <akhilanger at gmail.com> wrote:
>
> akhil1988 wrote:
>>
>> I have switched to python 3.1 , but now I am getting some syntax
>> errors in the code:
>>
>> File "./customWikiExtractor.py", line 81
>> __char_entities = {' ' :u'\u00A0', '¡'
>> :u'\u00A1',
>> '¢' :u'\u00A2',
>> ^
You may want to try 2.6. Python 3.1 is not syntax compatible with 2.5
(so the u'' stuff won't work in 3.1):
http://docs.python.org/dev/py3k/whatsnew/3.0.html#removed-syntax
max
More information about the Python-list
mailing list