Re: PostgreSQL JDBC Driver versus Encoding

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: PostgreSQL JDBC Driver versus Encoding
Дата
Msg-id 47194948.7070603@hogranch.com
обсуждение исходный текст
Ответ на PostgreSQL JDBC Driver versus Encoding  (João Paulo Pires <Joao.Pires@iscte.pt>)
Список pgsql-jdbc
João Paulo Pires wrote:
>
> Hello,
>
>
>
> I have a PostgreSQL database which encoding is SQL_ASCII.
>
> I inserted information into that database from a MySQL database, using
> Java code, which encoding is UTF-8, and the information in the
> destination database has some strange characters related with encoding
> problems.
>
>
>
> There is any additional parameter that we can consider in the
> PostrgreSQL connection string to deal with those problems?
>
> The problem should be related with the encoding used to connect to
> MySQL database?
>
>
>
you can't encode all symbols in UTF-8 with simple ASCII.   Symbols that
are the same will translate but ASCII only has 200 or so glyphs.  you'll
need to convert the database to UTF-8, then redo your inserts.


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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: PostgreSQL JDBC Driver versus Encoding
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Unable to prepare a statement when the object names contain more than one $ symbol