Bug #2979 character encoding
Submitted: 26 Feb 2004 13:08 Modified: 26 Feb 2004 22:23
Reporter: Aretm Mkrtchyan Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:3.0.10+ OS:Any (any)
Assigned to: Mark Matthews CPU Architecture:Any

[26 Feb 2004 13:08] Aretm Mkrtchyan
Description:
I use data base what contain russian text
when I am using C/J 3.0.8 with parametrs all works correctly.
but as soon as I change connector's archive result doesn't contain russian symbols

MySQL v 4.1.1a-alpha-nt

How to repeat:
      ....
      Class.forName("com.mysql.jdbc.Driver");
      Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/database?useUnicode=true&characterEncoding=cp1251","root","");
      Statement stmt = conn.createStatement();
      ResultSet rs   = stmt.executeQuery("select * from table;");
      while (rs.next()){
        System.out.println(rs.getString(1));
      }
      ....
Results when using 3.0.11 or 3.0.10 present folowing looks
?????????? instead of this ПРИВЕТСТВИЕ
[26 Feb 2004 22:23] Mark Matthews
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
[26 Feb 2004 22:23] Mark Matthews
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Please use a nightly snapshot build of 3.0 from http://downloads.mysql.com/snapshots.php