unicode confusing

someone petshmidt at googlemail.com
Mon May 25 11:39:07 EDT 2009


reading content of webpage (encoded in utf-8) with urllib2, I can't
get parsed data into DB


  File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 3111,
in execute
    raise OperationalError, msg
libpq.OperationalError: ERROR:  invalid UTF-8 byte sequence detected
near byte 0xe4

I've already checked several python unicode tutorials, but I have no
idea how to solve my problem.

Appreciating your help

More information about the Python-list mailing list