Re: Connection fails when the user name contains chinese characters - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: Connection fails when the user name contains chinese characters
Date
Msg-id 4BF1FB5E.4070005@postnewspapers.com.au
Whole thread Raw
In response to Connection fails when the user name contains chinese characters  ("Sarkar, Sudipta" <Sudipta_Sarkar@bmc.com>)
List pgsql-jdbc
On 18/05/2010 4:02 AM, Sarkar, Sudipta wrote:

> connProp.put("user", "\u6cf0\u5c71"); //Set the user name. Need to use
> Unicode escaped since it contains non ascii characters

What character encoding are your source files in? You should be able to
write normal UTF-8 encoded text so long as your compiler/IDE knows that
those are UTF-8 source files.

> My jdbc version is 8.3-603 and my database encoding is UTF-8.

Maybe try the latest JDBC driver (701), just to make sure it's not an
old issue...

--
Craig Ringer

pgsql-jdbc by date:

Previous
From: "Sarkar, Sudipta"
Date:
Subject: Connection fails when the user name contains chinese characters
Next
From: Thomas Kellerer
Date:
Subject: JDBC Driver and timezones