pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedMBC user cannot connect to server
5+ messages / 3 participants
[nested] [flat]
* MBC user cannot connect to server
@ 2006-10-12 21:42 zhyu 86 <zhyu86@hotmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: zhyu 86 @ 2006-10-12 21:42 UTC (permalink / raw)
To: pgsql-jdbc
Hi All,
I am using postgresql V8 and can connect to the db from my java program using username only consists of ASCII, but not with Multibyte character username. I have added "useUnicode=true and characterEncoding=UTF8" when i try to make the connection by calling DriverManager.getConnection(url, props).. any suggestions? BTW, i m using postgresl-8.1-405.jdbc3.jar as my driver.
TIA,
Yu
_________________________________________________________________
Use Messenger to talk to your IM friends, even those on Yahoo!
http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: MBC user cannot connect to server
@ 2006-10-12 23:30 Oliver Jowett <oliver@opencloud.com>
parent: zhyu 86 <zhyu86@hotmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Oliver Jowett @ 2006-10-12 23:30 UTC (permalink / raw)
To: zhyu 86 <zhyu86@hotmail.com>; +Cc: pgsql-jdbc
zhyu 86 wrote:
> Hi All,
>
> I am using postgresql V8 and can connect to the db from my java program using username only consists of ASCII, but not with Multibyte character username.
Hi
Previous discussion with the backend developers seemed to indicate that
you can't safely use non-ASCII database names or user names. There's no
provision in the startup protocol for identifying the encoding of the
database name & user name provided.
-O
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: MBC user cannot connect to server
@ 2006-10-13 01:23 zhyu 86 <zhyu86@hotmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: zhyu 86 @ 2006-10-13 01:23 UTC (permalink / raw)
To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc
I see. Thanks. Any plan to support this in near future? Thanks.
----------------------------------------
> Date: Fri, 13 Oct 2006 12:30:36 +1300
> From: oliver@opencloud.com
> To: zhyu86@hotmail.com
> CC: pgsql-jdbc@postgresql.org
> Subject: Re: [JDBC] MBC user cannot connect to server
>
> zhyu 86 wrote:
> > Hi All,
> >
> > I am using postgresql V8 and can connect to the db from my java program using username only consists of ASCII, but not with Multibyte character username.
>
> Hi
>
> Previous discussion with the backend developers seemed to indicate that
> you can't safely use non-ASCII database names or user names. There's no
> provision in the startup protocol for identifying the encoding of the
> database name & user name provided.
>
> -O
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
_________________________________________________________________
All-in-one security and maintenance for your PC. Get a free 90-day trial!
http://www.windowsonecare.com/purchase/trial.aspx?sc_cid=wl_wlmail
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: MBC user cannot connect to server
@ 2006-10-13 01:56 Tom Lane <tgl@sss.pgh.pa.us>
parent: zhyu 86 <zhyu86@hotmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2006-10-13 01:56 UTC (permalink / raw)
To: zhyu 86 <zhyu86@hotmail.com>; +Cc: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc
zhyu 86 <zhyu86@hotmail.com> writes:
> I see. Thanks. Any plan to support this in near future? Thanks.
AFAIK it'll work as long as you consistently use the same encoding for
the user or database name ... which pretty much means it has to be UTF8
if you are talking to it from Java.
There are no plans to support encoding conversion during authentication.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: MBC user cannot connect to server
@ 2006-10-13 14:09 zhyu 86 <zhyu86@hotmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: zhyu 86 @ 2006-10-13 14:09 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Oliver Jowett <oliver@opencloud.com>; pgsql-jdbc
Thanks a lot. I appreciate it. Do you happen to know is this apply to other databases as well? (Sybase, Mysql etc)?
----------------------------------------
> To: zhyu86@hotmail.com
> CC: oliver@opencloud.com; pgsql-jdbc@postgresql.org
> Subject: Re: [JDBC] MBC user cannot connect to server
> Date: Thu, 12 Oct 2006 21:56:37 -0400
> From: tgl@sss.pgh.pa.us
>
> zhyu 86 <zhyu86@hotmail.com> writes:
> > I see. Thanks. Any plan to support this in near future? Thanks.
>
> AFAIK it'll work as long as you consistently use the same encoding for
> the user or database name ... which pretty much means it has to be UTF8
> if you are talking to it from Java.
>
> There are no plans to support encoding conversion during authentication.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2006-10-13 14:09 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-10-12 21:42 MBC user cannot connect to server zhyu 86 <zhyu86@hotmail.com>
2006-10-12 23:30 ` Oliver Jowett <oliver@opencloud.com>
2006-10-13 01:23 Re: MBC user cannot connect to server zhyu 86 <zhyu86@hotmail.com>
2006-10-13 01:56 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-10-13 14:09 Re: MBC user cannot connect to server zhyu 86 <zhyu86@hotmail.com>
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