Re: Encoding Problem

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Jerome Colombie <jcolombie(at)gmx(dot)ch>
Cc: Kris Jurka <books(at)ejurka(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Encoding Problem
Date: 2005-01-14 00:04:47
Message-ID: 41E70C9F.90106@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Jerome Colombie wrote:

> byte[] temp = test.getBytes();

getBytes() uses the JVM's default encoding to convert from the internal
string char[] representation, which might be wrong.

More interesting is test.getBytes("UTF-8") or test.getChars() or
test.charAt(x)

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2005-01-14 01:25:27 Re: Removing our datasource/pooling implementation.
Previous Message Kris Jurka 2005-01-13 23:51:07 Re: Encoding Problem