Re: Connection fails when the user name contains chinese characters

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Connection fails when the user name contains chinese characters
Дата
Msg-id 4BF1FB5E.4070005@postnewspapers.com.au
обсуждение исходный текст
Ответ на Connection fails when the user name contains chinese characters  ("Sarkar, Sudipta" <Sudipta_Sarkar@bmc.com>)
Список 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 по дате отправления:

Предыдущее
От: "Sarkar, Sudipta"
Дата:
Сообщение: Connection fails when the user name contains chinese characters
Следующее
От: Thomas Kellerer
Дата:
Сообщение: JDBC Driver and timezones