Re: Encoding Problem

Поиск
Список
Период
Сортировка
От Marc Herbert
Тема Re: Encoding Problem
Дата
Msg-id khjd5ahz43h.fsf@meije.emic.fr
обсуждение исходный текст
Ответ на Encoding Problem  ("meil parachorras" <meilparachorras@hotmail.com>)
Список pgsql-jdbc
"meil parachorras" <meilparachorras@hotmail.com> writes:

> Example:
> Class.forName("org.postgresql.Driver");
> String url = "jdbc:postgresql://localhost:5432/GE";
> Connection con = DriverManager.getConnection(url,"user","pass");
> Statement st = con.createStatement();
> sql = "INSERT INTO Auffinden VALUES ('1','München');";
> ResultSet res = st.executeQuery(sql);
> con.close();
>
> And I receive this error:
> org.postgresql.util.PSQLException: ERROR: character 0xc383 of encoding
> "UTF8" has no equivalent in "ISO_8859_5".

You configured your database with a cyrillic alphabet. The error
message just means that ü (u umlaut) does not exist in this cyrillic
alphabet, you cannot write this character in cyrillic. This is NOT an
encoding issue, it's a charset issue: this character does not exist in
this charset, so there is no way you can insert it, whatever the
encoding(s).

<http://czyborra.com/charsets/iso8859.html#ISO-8859-5>

You'll easily find more detailed explanations if you search the web.


> How can I data with encoding ISO_8859_5 with JDBC senden?

?

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

Предыдущее
От: "meil parachorras"
Дата:
Сообщение: Encoding Problem
Следующее
От: Mario Splivalo
Дата:
Сообщение: Re: Catching postgres exceptions - functions returning