pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Sarkar, Sudipta <Sudipta_Sarkar@bmc.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Connection fails when the user name contains chinese characters
Date: Tue, 18 May 2010 10:28:46 +0800
Message-ID: <4BF1FB5E.4070005@postnewspapers.com.au> (raw)
In-Reply-To: <2FB1D66ABE14B141BCF3DD40A3D95AD113CFA24BA1@PHXCCRPRD01.adprod.bmc.com>
References: <2FB1D66ABE14B141BCF3DD40A3D95AD113CFA24BA1@PHXCCRPRD01.adprod.bmc.com>

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



view thread (2+ messages)

Message-ID: <4BF1FB5E.4070005@postnewspapers.com.au>
Permalink:  ../4BF1FB5E.4070005@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4BF1FB5E.4070005@postnewspapers.com.au

 · 

reply

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: craig@postnewspapers.com.au, Sudipta_Sarkar@bmc.com
  Subject: Re: Connection fails when the user name contains chinese characters
  In-Reply-To: <4BF1FB5E.4070005@postnewspapers.com.au>
  References: <2FB1D66ABE14B141BCF3DD40A3D95AD113CFA24BA1@PHXCCRPRD01.adprod.bmc.com> <4BF1FB5E.4070005@postnewspapers.com.au>

* 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