Hi;
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/codecs.py", 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

newLine.append(word)

sentences.close()

TIA,

Victor
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to