Re: [ODBC] UTF-8 data migration problem in Postgresql 7.2

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: [ODBC] UTF-8 data migration problem in Postgresql 7.2
Дата
Msg-id 20020222182310Z.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: [ODBC] UTF-8 data migration problem in Postgresql 7.2  (Jean-Michel POURE <jm.poure@freesurf.fr>)
Список pgsql-hackers
> I guess the error might come from PostgreSQL string parsing functions:
> 1) new.target_content:= translate(new.target_content, chr(146), chr (39)) ;
> 2) substring(text, int4). Is substring multibyte safe?

Oh, I think I found the source of the problem. Apparently you did 1)
above in PostgreSQL 7.1.3, right?

7.1's translate is not multibyte aware, so it simply replaces every
occurence of chr(146) = 0x92 to chr(39) = 0x27 even if it's part of
the multibyte sequece.

The broken seqneuce was E3/82/27, which is apparently replaced by
translate() from E3/82/92.
--
Tatsuo Ishii

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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [ODBC] UTF-8 data migration problem in Postgresql 7.2
Следующее
От: "Zeugswetter Andreas SB SD"
Дата:
Сообщение: Re: point in time recovery and moving datafiles online