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

James Huang wrote:

> Thanks, Mark. This instills great confidence in me.
>
> I used this URL:
> "jdbc:mysql://localhost/mydb?useUnicode=true&characterEncoding=utf8"
> (should I use "utf-8" perhaps?) Would this work, too?

James,

Either should work, if you're using the latest version of Connector/J,
however 'utf-8' is the 'Java' encoding name, which is more correct.

> What is
>
>   Connection utf8Conn = getConnectionWithProps(props);
>
> in your test code? That doesn't look like a standard JDBC method.

The Junit tests in our testsuite build off a base
testcase...getConnectionWithProps(Properties) is a method in this base
class that uses the 'standard' URL of our testsuite in combination with
the given properties to create a connection. This facilitates having a
common URL, but the ability to test cases when various properties
(characterEncoding, autoReconnect, etc) affect how the driver behaves.

        -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

iD8DBQFAvhw+tvXNTca6JD8RAmpuAJsFnIKqZmPhKHBahGidGvRODQSQjwCfYEXs
6RB/NbXSM+UcGLbYfuvAupw=
=40ie
-----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