Re: Selecting on non ASCII varchars - Mailing list pgsql-jdbc

From Marc Herbert
Subject Re: Selecting on non ASCII varchars
Date
Msg-id 87vf0cjb6a.fsf@meije.emic.fr
Whole thread Raw
In response to Selecting on non ASCII varchars  (Jeremy LaCivita <jlacivita@broadrelay.com>)
List 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 by date:

Previous
From:
Date:
Subject: Connection to PostgreSQL server behind proxy
Next
From: Russ Tennant
Date:
Subject: "org.postgresql.util.PSQLException: This ResultSet is closed" in call to rst.getString(..)