accented chars make an error

Alberto Vera avera at coes.org.pe
Mon Apr 5 11:35:22 EDT 2004


Hello

I'm using win32com.client to get information from a database.

The problem occurs with accented chars like Á,É,Í,Ó,Ú.
when a program get a string containing these accented chars from the database, Python shows an error like : UnicodeEncodeError: 'ascii' codec can't encode character u'\xc1' in position 22: ordinal not in range(128)


Could you tell me How I can avoid this error?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040405/4fa65916/attachment.html>


More information about the Python-list mailing list