From: Marc Herbert <Marc.Herbert@emicnetworks.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Selecting on non ASCII varchars
Date: Wed, 05 Oct 2005 16:22:37 +0200
Message-ID: <87vf0cjb6a.fsf@meije.emic.fr> (raw)
References: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com>
<43408C35.6020902@opencloud.com>
<366C3C4C-7E0A-4154-A02E-8A0B6F016157@broadrelay.com>
<200510041714.01768.vadimn@redhat.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: Marc.Herbert@emicnetworks.com
Subject: Re: Selecting on non ASCII varchars
In-Reply-To: <87vf0cjb6a.fsf@meije.emic.fr>
References: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com> <43408C35.6020902@opencloud.com> <366C3C4C-7E0A-4154-A02E-8A0B6F016157@broadrelay.com> <200510041714.01768.vadimn@redhat.com> <87vf0cjb6a.fsf@meije.emic.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox