pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedMangled accented characters
2+ messages / 2 participants
[nested] [flat]
* Mangled accented characters
@ 2004-10-04 23:54 Yamir Encarnacion <yencarnacion@yahoo.com>
2004-10-05 13:55 ` Re: Mangled accented characters Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 2+ messages in thread
From: Yamir Encarnacion @ 2004-10-04 23:54 UTC (permalink / raw)
To: pgsql-jdbc
I am having a problem with my accented characters
getting mangled.
Here is a snippet of the code I ran to reproduce the
problem
>>>Code starts
Connection con =
DriverManager.getConnection(url, user, pwd);
query = "INSERT INTO container (catparent,
catid, position, catname, cattype) values (2, 1, 1,
'Educación', 0)";
stmt = con.createStatement();
stmt.execute(query);
con.close();
<<<Code ends
My database is encoded using LATIN1
List of databases
Name | Owner | Encoding
directory | dpr | LATIN1
When I do a Select using psql for the row above I get
the following:
catid | catname | catparent | position | cattype |
description | keywords
-------+-----------+-----------+----------+---------+-------------+----------
1 | EducaciÛn | 2 | 1 | 0 |
|
Could someone explain to me how to insert Educación
as Educación instead of as EducaciÛn. Thank you.
Yamir
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Mangled accented characters
2004-10-04 23:54 Mangled accented characters Yamir Encarnacion <yencarnacion@yahoo.com>
@ 2004-10-05 13:55 ` Dave Cramer <pg@fastcrypt.com>
0 siblings, 0 replies; 2+ messages in thread
From: Dave Cramer @ 2004-10-05 13:55 UTC (permalink / raw)
To: Yamir Encarnacion <yencarnacion@yahoo.com>; +Cc: pgsql-jdbc
Yamir,
You should review the archives looking for encoding unicode.
The short version is that internally java uses unicode, and so does the
driver.
Dave
On Mon, 2004-10-04 at 19:54, Yamir Encarnacion wrote:
> I am having a problem with my accented characters
> getting mangled.
> Here is a snippet of the code I ran to reproduce the
> problem
> >>>Code starts
> Connection con =
> DriverManager.getConnection(url, user, pwd);
> query = "INSERT INTO container (catparent,
> catid, position, catname, cattype) values (2, 1, 1,
> 'Educacin', 0)";
> stmt = con.createStatement();
> stmt.execute(query);
> con.close();
> <<<Code ends
>
>
> My database is encoded using LATIN1
> List of databases
> Name | Owner | Encoding
> directory | dpr | LATIN1
>
> When I do a Select using psql for the row above I get
> the following:
>
>
> catid | catname | catparent | position | cattype |
> description | keywords
> -------+-----------+-----------+----------+---------+-------------+----------
> 1 | Educacin | 2 | 1 | 0 |
> |
>
> Could someone explain to me how to insert Educacin
> as Educacin instead of as Educacin. Thank you.
>
> Yamir
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Dave Cramer
519 939 0336
ICQ # 14675561
www.postgresintl.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-10-05 13:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-04 23:54 Mangled accented characters Yamir Encarnacion <yencarnacion@yahoo.com>
2004-10-05 13:55 ` Dave Cramer <pg@fastcrypt.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