From: Yamir Encarnacion <yencarnacion@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Mangled accented characters
Date: Mon, 4 Oct 2004 16:54:33 -0700 (PDT)
Message-ID: <20041004235433.86666.qmail@web52303.mail.yahoo.com> (raw)
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
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: yencarnacion@yahoo.com
Subject: Re: Mangled accented characters
In-Reply-To: <20041004235433.86666.qmail@web52303.mail.yahoo.com>
References: <20041004235433.86666.qmail@web52303.mail.yahoo.com>
* 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