Re: [JDBC] Re: [JDBC] é converted in Ã(c)
От | Dave Cramer |
---|---|
Тема | Re: [JDBC] Re: [JDBC] é converted in Ã(c) |
Дата | |
Msg-id | CADK3HHJ-BhpTRxJGYVP5vx0tpy+HBdiQuh1UyNxBAG8w5FLvLA@mail.gmail.com обсуждение исходный текст |
Ответы |
RE: [JDBC] Re: [JDBC] Re: [JDBC] é converted in Ã(c)
|
Список | pgsql-jdbc |
The JDBC driver only knows one encoding. Are you using it to retrieve the data as well ?
On Fri, Feb 8, 2013 at 5:52 PM, Kevin Grittner <kgrittn@ymail.com> wrote:
Laurent Schweizer <laurent.schweizer@peoplefone.com> wrote:It is behaving as though the client is using a character encoding
> I have an issue with special character like é.
> I have as server postgres 9.2, I have created a new DB , encoding
> utf8
>
> Client is a very simple test class that:
> 1) update a varchar value
> 2) read the same value and print them
>
> If I update the varchar with a special character like “é” the
> value in the DB is correct ( I check them with another software )
> but when I read them from my simple java class the value is not
> correct and the é is converted in é
>
> I have added to the connection string the option:
> ?useUnicode=true&characterEncoding=utf8
>
> And if I do a : "SHOW client_encoding;” I get UTF8
other than UTF8 -- some sort of 8-bit encoding, probably. You must
set client_encoding to match.
-Kevin
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
В списке pgsql-jdbc по дате отправления: