Anyone Know Unicode? Help!

Victor Subervi victorsubervi at
Wed Jan 30 14:47:38 CET 2008

Second post on this. Googling shows many others with same problem, but no
answers! Help! New to unicode. Got this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 29, in tagWords
  File "/usr/local/lib/python2.5/", line 303, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9:
ordinal not in range(128)

I think the problem comes from this code snippet:

for line in sentences:
print line
tup = re.split(' ', line)
for word in tup:
for key, value in dictionary.items():
if key == word:
word = word + '::' + value
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list