From: | Barry Lind <blind(at)xythos(dot)com> |
---|---|
To: | Lars Stenberg <lars(dot)stenberg(at)psycat(dot)net> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Encoding problems |
Date: | 2003-02-03 19:38:20 |
Message-ID: | 3E3EC52C.4070008@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Lars,
Can you submit a test case that demonstrates the problem? The only
situation I have seen this is when you are storing 8bit characters in a
database declared as ascii. I have not seen any reports of this
happening when the character set of the database was an 8bit character set.
--Barry
Lars Stenberg wrote:
> Hi!
>
> A couple of days ago i had som serius problems with an database, the
> decodeUTF8() method in the org.postgresql.core.Encoding crashed
> (java.lang.ArrayIndexOutOfBoundsException: 12, at
> org.postgresql.core.Encoding.decodeUTF8(Encoding.java:254)).
>
> After some searches in the archives i found that i should create my
> database with another encoding (im using scandinavian chars). So i tried
> with Latin1, but it didnt work.
>
> The database is now in Unicode and i patched the Encoding.java to bypass
> the decodeUTF8 and just convert it to ISO-8859-1, it works but i still
> wants to know what the problem was, so i anyone could tell me what im
> done wrong i´ll be happy.
>
> Cheers
> Lars Stenberg
From | Date | Subject | |
---|---|---|---|
Next Message | Felipe Schnack | 2003-02-03 20:50:15 | PreparedStatment.toString() |
Previous Message | Kris Jurka | 2003-02-03 19:18:23 | Re: bug in AbstractJdbc1Statement.java (7.3) |