pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSQL_ASCII charset conversion
3+ messages / 3 participants
[nested] [flat]
* SQL_ASCII charset conversion
@ 2011-08-25 10:41 Dieter <dieter.salathe@syslink.ch>
2011-08-25 17:03 ` Re: SQL_ASCII charset conversion Radosław Smogura <mail@smogura.eu>
0 siblings, 1 reply; 3+ messages in thread
From: Dieter @ 2011-08-25 10:41 UTC (permalink / raw)
To: pgsql-jdbc
Hi
we have a Postgres 8.4 database with SQL_ASCII encoding.
Unfortunately, there are non ascii characters stored in this database. The
encoding used to store the non-ascii characters was ISO-8859-1 (LATIN1). I
know thats not the way to go, but thats the situation.
With the old Postgres JDBC Driver (older than 7.2), the charSet Property
could be as follows:
charSet=ISO-8859-1
With this setting, the characers in the database are correctly interpreted.
Now, with the new 8.4 postgres JDBC driver, this charSet setting is not
supported anymore.
How can I set the character encoding to ISO-8859-1 in the 8.4 Postgres
Driver?
Thank you very much.
Regards
Dieter
--
View this message in context: http://postgresql.1045698.n5.nabble.com/SQL-ASCII-charset-conversion-tp4733958p4733958.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SQL_ASCII charset conversion
2011-08-25 10:41 SQL_ASCII charset conversion Dieter <dieter.salathe@syslink.ch>
@ 2011-08-25 17:03 ` Radosław Smogura <mail@smogura.eu>
0 siblings, 0 replies; 3+ messages in thread
From: Radosław Smogura @ 2011-08-25 17:03 UTC (permalink / raw)
To: pgsql-jdbc; +Cc: Dieter <dieter.salathe@syslink.ch>
Hi,
I bearly looked at driver code, and I see setting charSet is possible only if
databse is 7.3 or earlier.
I think better solution will bo for you to dump databse to sql, and eventually
fix encoding with iconv. You may try to set system encoding /in Your session/
to ASCII or better to ISO-8859-1 and take dump, then create database with
proper encoding (or change database creation to reflex desired encodind in
dumped file). If you will restore database from such file, and such session
everything should work. I hope.
Regards,
Dieter <dieter.salathe@syslink.ch> Thursday 25 of August 2011 12:41:44
> Hi
>
> we have a Postgres 8.4 database with SQL_ASCII encoding.
>
> Unfortunately, there are non ascii characters stored in this database. The
> encoding used to store the non-ascii characters was ISO-8859-1 (LATIN1). I
> know thats not the way to go, but thats the situation.
>
>
> With the old Postgres JDBC Driver (older than 7.2), the charSet Property
> could be as follows:
> charSet=ISO-8859-1
> With this setting, the characers in the database are correctly interpreted.
>
> Now, with the new 8.4 postgres JDBC driver, this charSet setting is not
> supported anymore.
> How can I set the character encoding to ISO-8859-1 in the 8.4 Postgres
> Driver?
>
> Thank you very much.
>
> Regards
> Dieter
>
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/SQL-ASCII-charset-conversion-tp473
> 3958p4733958.html Sent from the PostgreSQL - jdbc mailing list archive at
> Nabble.com.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SQL_ASCII charset conversion
@ 2011-08-25 17:06 Radosław Smogura <rsmogura@softperience.eu>
0 siblings, 0 replies; 3+ messages in thread
From: Radosław Smogura @ 2011-08-25 17:06 UTC (permalink / raw)
To: pgsql-jdbc; +Cc: Dieter <dieter.salathe@syslink.ch>
Hi,
I bearly looked at driver code, and I see setting charSet is possible only if
databse is 7.3 or earlier.
I think better solution will bo for you to dump databse to sql, and eventually
fix encoding with iconv. You may try to set system encoding /in Your session/
to ASCII or better to ISO-8859-1 and take dump, then create database with
proper encoding (or change database creation to reflex desired encodind in
dumped file). If you will restore database from such file, and such session
everything should work. I hope.
Regards,
Dieter <dieter.salathe@syslink.ch> Thursday 25 of August 2011 12:41:44
> Hi
>
> we have a Postgres 8.4 database with SQL_ASCII encoding.
>
> Unfortunately, there are non ascii characters stored in this database. The
> encoding used to store the non-ascii characters was ISO-8859-1 (LATIN1). I
> know thats not the way to go, but thats the situation.
>
>
> With the old Postgres JDBC Driver (older than 7.2), the charSet Property
> could be as follows:
> charSet=ISO-8859-1
> With this setting, the characers in the database are correctly interpreted.
>
> Now, with the new 8.4 postgres JDBC driver, this charSet setting is not
> supported anymore.
> How can I set the character encoding to ISO-8859-1 in the 8.4 Postgres
> Driver?
>
> Thank you very much.
>
> Regards
> Dieter
>
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/SQL-ASCII-charset-conversion-tp473
> 3958p4733958.html Sent from the PostgreSQL - jdbc mailing list archive at
> Nabble.com.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-08-25 17:06 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25 10:41 SQL_ASCII charset conversion Dieter <dieter.salathe@syslink.ch>
2011-08-25 17:03 ` Radosław Smogura <mail@smogura.eu>
2011-08-25 17:06 Re: SQL_ASCII charset conversion Radosław Smogura <rsmogura@softperience.eu>
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