pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem : Japanese Character Support
5+ messages / 4 participants
[nested] [flat]
* Problem : Japanese Character Support
@ 2005-01-15 06:56 Rashmi <rashmi@fideltech.com>
2005-01-15 07:13 ` Re: Problem : Japanese Character Support Kris Jurka <books@ejurka.com>
2005-01-17 11:57 ` Re: Problem : Japanese Character Support Guillaume Cottenceau <gc@mnc.ch>
0 siblings, 2 replies; 5+ messages in thread
From: Rashmi @ 2005-01-15 06:56 UTC (permalink / raw)
To: pgsql-jdbc
Hello,
I have one problem. I am working on java and postgre sql.
The data in postgre sql is in japanese
When i used JDBC code in java like select statement then i
get the resultset but in that resultset instead of
japanese data , empty string is coming so i am not getting
japanese data in java from postgre sql.
Its not giving error but return empty string. But, when i
used english data, its working fine
What could be the problem?
Is it that postgre's JDBC driver is not supporting
japanese character.
Waiting for early reply.
Rashmi
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Problem : Japanese Character Support
2005-01-15 06:56 Problem : Japanese Character Support Rashmi <rashmi@fideltech.com>
@ 2005-01-15 07:13 ` Kris Jurka <books@ejurka.com>
2005-01-17 14:04 ` Re: Problem : Japanese Character Support Guillaume Cottenceau <gc@mnc.ch>
1 sibling, 1 reply; 5+ messages in thread
From: Kris Jurka @ 2005-01-15 07:13 UTC (permalink / raw)
To: Rashmi <rashmi@fideltech.com>; +Cc: pgsql-jdbc
On Sat, 15 Jan 2005, Rashmi wrote:
> What could be the problem? Is it that postgre's JDBC driver is not
> supporting japanese character.
>
The JDBC driver has no problem with Japanese characters. You must have a
database that supports it. What encoding is your database in?
Kris Jurka
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Problem : Japanese Character Support
2005-01-15 06:56 Problem : Japanese Character Support Rashmi <rashmi@fideltech.com>
2005-01-15 07:13 ` Re: Problem : Japanese Character Support Kris Jurka <books@ejurka.com>
@ 2005-01-17 14:04 ` Guillaume Cottenceau <gc@mnc.ch>
0 siblings, 0 replies; 5+ messages in thread
From: Guillaume Cottenceau @ 2005-01-17 14:04 UTC (permalink / raw)
To: pgsql-jdbc
Kris Jurka <books 'at' ejurka.com> writes:
> The JDBC driver has no problem with Japanese characters. You must have a
> database that supports it. What encoding is your database in?
Kris: is there any reason why not always using unicode while
creating databases on Linux (I've read that unicode is not
supported on Windows)? That way, all characters would be
supported.
--
Guillaume Cottenceau
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Problem : Japanese Character Support
2005-01-15 06:56 Problem : Japanese Character Support Rashmi <rashmi@fideltech.com>
@ 2005-01-17 11:57 ` Guillaume Cottenceau <gc@mnc.ch>
2005-01-17 12:19 ` Re: Problem : Japanese Character Support Antony Paul <antonypaul24@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Guillaume Cottenceau @ 2005-01-17 11:57 UTC (permalink / raw)
To: Rashmi <rashmi@fideltech.com>; +Cc: pgsql-jdbc
"Rashmi" <rashmi 'at' fideltech.com> writes:
> Hello,
>
> I have one problem. I am working on java and postgre sql. The data in
> postgre sql is in japanese
> When i used JDBC code in java like select statement then i get the
> resultset but in that resultset instead of japanese data , empty
> string is coming so i am not getting japanese data in java from
> postgre sql.
> Its not giving error but return empty string. But, when i used english
> data, its working fine
>
> What could be the problem?
> Is it that postgre's JDBC driver is not supporting japanese character.
Using both postgres 7.2 and 7.4 I had no problem at all mixing
any type of language (currently tested english, french and
japanese on the same page). I have set the database in UTF-8 at
creation time. I use UTF-8 back and forth in my webapp (which
uses struts).
--
Guillaume Cottenceau
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Problem : Japanese Character Support
2005-01-15 06:56 Problem : Japanese Character Support Rashmi <rashmi@fideltech.com>
2005-01-17 11:57 ` Re: Problem : Japanese Character Support Guillaume Cottenceau <gc@mnc.ch>
@ 2005-01-17 12:19 ` Antony Paul <antonypaul24@gmail.com>
0 siblings, 0 replies; 5+ messages in thread
From: Antony Paul @ 2005-01-17 12:19 UTC (permalink / raw)
To: pgsql-jdbc
Read this page.
http://www.postgresql.org/docs/current/static/multibyte.html
I think at some versions it was possible to specify the character
encoding in the JDBC URL like this
jdbc:postgresql://192.168.0.1/antony?charSet=LATIN1
rgds
Antony Paul
On 17 Jan 2005 12:57:47 +0100, Guillaume Cottenceau <gc@mnc.ch> wrote:
> "Rashmi" <rashmi 'at' fideltech.com> writes:
>
> > Hello,
> >
> > I have one problem. I am working on java and postgre sql. The data in
> > postgre sql is in japanese
> > When i used JDBC code in java like select statement then i get the
> > resultset but in that resultset instead of japanese data , empty
> > string is coming so i am not getting japanese data in java from
> > postgre sql.
> > Its not giving error but return empty string. But, when i used english
> > data, its working fine
> >
> > What could be the problem?
> > Is it that postgre's JDBC driver is not supporting japanese character.
>
> Using both postgres 7.2 and 7.4 I had no problem at all mixing
> any type of language (currently tested english, french and
> japanese on the same page). I have set the database in UTF-8 at
> creation time. I use UTF-8 back and forth in my webapp (which
> uses struts).
>
> --
> Guillaume Cottenceau
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2005-01-17 14:04 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-01-15 06:56 Problem : Japanese Character Support Rashmi <rashmi@fideltech.com>
2005-01-15 07:13 ` Kris Jurka <books@ejurka.com>
2005-01-17 14:04 ` Guillaume Cottenceau <gc@mnc.ch>
2005-01-17 11:57 ` Guillaume Cottenceau <gc@mnc.ch>
2005-01-17 12:19 ` Antony Paul <antonypaul24@gmail.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