Re: JDBC to load UTF8@psql to latin1@mysql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: JDBC to load UTF8@psql to latin1@mysql
Дата
Msg-id 29835.1355498159@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: JDBC to load UTF8@psql to latin1@mysql  (Emi Lu <emilu@encs.concordia.ca>)
Ответы Re: JDBC to load UTF8@psql to latin1@mysql
Список pgsql-general
Emi Lu <emilu@encs.concordia.ca> writes:
> For now, through the following method, all letters are correctly
> transformed except "�".

Meh.  That character renders as \310 in your mail, which is not an
assigned code in ISO 8859-1.  The numerically corresponding Unicode
value would be U+0090, which is an unspecified control character.

I surmise that your source data is not actually either Unicode or
ISO 8859-1, but one of the random "extended" character sets that
Microsoft has loosed upon the world, perhaps windows-1252
http://en.wikipedia.org/wiki/Windows-1252

The conversion code that you're using is quite right to reject the
character as not being valid LATIN1.  What you need to do is figure out
what the data actually is and correct its encoding.  It's evidently
stored wrong in the UTF8 data, if you believe that this code is a
letter.

            regards, tom lane


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

Предыдущее
От: Emi Lu
Дата:
Сообщение: Re: JDBC to load UTF8@psql to latin1@mysql
Следующее
От: joshua
Дата:
Сообщение: Implicit casts to array types