Re: unicode confusing

2009-05-26 Thread Paul Boddie
On 26 Mai, 10:09, Pet wrote: > > After some time, I've tried, to convert result with unicode(result, > 'ISO-8859-15') and that was it :) I haven't really investigated having unicode_results set to false (or the default) with a database containing UTF-8 (or any non-ASCII encoded) text, since it's

Re: unicode confusing

2009-05-26 Thread Pet
On May 26, 9:29 am, Pet wrote: > On May 25, 6:07 pm, Paul Boddie wrote: > > > > > > > On 25 Mai, 17:39, someone wrote: > > > > Hi, > > > > reading content of webpage (encoded in utf-8) with urllib2, I can't > > > get parsed data into DB > > > > Exception: > > > >   File "/usr/lib/python2.5/site-

Re: unicode confusing

2009-05-26 Thread Pet
On May 25, 6:07 pm, Paul Boddie wrote: > On 25 Mai, 17:39, someone wrote: > > > Hi, > > > reading content of webpage (encoded in utf-8) with urllib2, I can't > > get parsed data into DB > > > Exception: > > >   File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 3111, > > in execute >

Re: unicode confusing

2009-05-25 Thread Paul Boddie
On 25 Mai, 17:39, someone wrote: > Hi, > > reading content of webpage (encoded in utf-8) with urllib2, I can't > get parsed data into DB > > Exception: > >   File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 3111, > in execute >     raise OperationalError, msg > libpq.OperationalError

unicode confusing

2009-05-25 Thread someone
Hi, reading content of webpage (encoded in utf-8) with urllib2, I can't get parsed data into DB Exception: 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 b