public inbox for [email protected]  
help / color / mirror / Atom feed
From: anil maran <[email protected]>
To: [email protected]
Subject: latin-1 to utf8 in python
Date: Wed, 2 Aug 2006 12:26:12 -0700 (PDT)
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

postgres takes utf8 

pls help me solve this thanks a lot

 some data is in latin-1 so postgres 
 crashes 
 with 
 
psycopg2.ProgrammingError at /todo/38 
 invalid byte sequence for encoding "UTF8": 0x92 
 
ariable         Value 
 args 
 ("INSERT INTO xdaad(nt, nn, tadadid, email) VALUES (%s, %s, %s, %s); SELECT 
 currval('comments_id_seq')", ['co-worker\x92snd I\x92ll get the .\r\n\r\n \r\n\r\nAeF\r\n\r\n\r\n\r\n \r\n\r\n', '121', '38', '[email protected]']) 
   
         ");   //-->
 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

view thread (10+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: latin-1 to utf8 in python
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox