latin-1 to utf8 in python

Поиск
Список
Период
Сортировка
От anil maran
Тема latin-1 to utf8 in python
Дата
Msg-id 20060802192612.71752.qmail@web55915.mail.re3.yahoo.com
обсуждение исходный текст
Ответ на Re: [Fwd: [BUGS] BUG #2560: Web page documentation hard  (Richard Huxton <dev@archonet.com>)
Ответы Re: latin-1 to utf8 in python  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-www
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', '...@tad.com'])


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

В списке pgsql-www по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: [Fwd: [BUGS] BUG #2560: Web page documentation hard
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [Fwd: [BUGS] BUG #2560: Web page documentation hard