| От | Fernando Lozano |
|---|---|
| Тема | Re: pgsql, java and accents |
| Дата | |
| Msg-id | 3C58A06D.337D28D8@centroin.com.br обсуждение |
| Ответ на | pgsql, java and accents (Fernando Lozano <fsl@centroin.com.br>) |
| Список | pgsql-general |
Hi there! Found the cause and I guess many people will be surprised. I found the info on the JDBC 2.0 conformance tests at jdbc.postgresql.org. It looks that recent versions of PostgreSQL, if compiled without multi-byte characters suport (as are the RPM packages) will *allways* respond to the JDBC driver it's working on US7_ASCII. That's why I could not read nor write accents from Java, only from psql. Java was told to use 7-but ASCII. The workaround is described on the same doc: you have to append "?charSet=ISO8859-1" to the connectionURL (or pass it as properties). Actually the doc suggested UTF-8 but it didn't worked for me. ISO8859-1 worked fine. Hope this helps other non-english speakers like me. :-) []s, Fernando Lozano
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера