Re: Selecting on non ASCII varchars

Поиск
Список
Период
Сортировка
От Marc Herbert
Тема Re: Selecting on non ASCII varchars
Дата
Msg-id 87vf0cjb6a.fsf@meije.emic.fr
обсуждение исходный текст
Ответ на Selecting on non ASCII varchars  (Jeremy LaCivita <jlacivita@broadrelay.com>)
Список pgsql-jdbc
Vadim Nasardinov <vadimn@redhat.com> writes:

> On Tuesday 04 October 2005 16:16, Jeremy LaCivita wrote:

>> Correct me if i'm wrong, but that says to me that the Strings were
>> in UTF-8 already, but Java didn't know it, so it couldn't send them
>> to postgres properly.
>
> It's meaningless to ask what encoding a String has.  String are
> sequence of chars -- they don't have an encoding.

Actually they are encoded using UTF-16

 <http://java.sun.com/developer/technicalArticles/Intl/Supplementary/>

Granted, this is the no-brainer "same value" encoding... as long as
codepoint < U+FFFF


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

Предыдущее
От:
Дата:
Сообщение: Connection to PostgreSQL server behind proxy
Следующее
От: Russ Tennant
Дата:
Сообщение: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..)