-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

robert kuzelj wrote:


> [code]
> 18        String family = new String(rs.getBytes("FAMILY_NAME"));
> 19        String given = new String(rs.getBytes("GIVEN_NAME"));
> [/code]
>
> [result]
>       [java] .Käßsel - Böb
>       [java] Ægÿl - Àlbért
>       [java] ??????????? - ???????????
> [/result]
>
> seems like the driver(s) is not able to determin how to transform
> strings into UTF-8.

Robert,

Connector/J should be able to handle UTF-8 just fine as long as you've
configured MySQL appropriately (and it appears from your previous posts
that you have). (The character set itself is actually tested in the unit
test suite).

However, once you start displaying things on the console, all bets are
off...because your console needs to understand UTF-8 as well, so using
the 'eyeball' method of testing won't work too well here.

Have you compared the strings you insert into the database with the
strings you retrieve _inside_ the JVM (i.e. by using the .equals())
method...If the two strings are indeed equal inside Java, then you would
at least know that the issue doesn't start there.

As an aside, what does 'SHOW CREATE TABLE' for the tables in question say?

        -Mark
- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com

MySQL Guide to Lower TCO
http://www.mysql.com/it-resources/white-papers/tco.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAtMv0tvXNTca6JD8RAmcLAKCxPpsz1e6ClolF5c+ML+SiIIp1oACcD+14
KopZcwVCfQwyZ0CldtBZ/oI=
=NszQ
-----END PGP SIGNATURE-----

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to