Bug #12752 Error in com/mysql/jdbc/Charsets.properties
Submitted: 23 Aug 2005 10:43 Modified: 17 Oct 2005 19:43
Reporter: Victor Pyankov Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S1 (Critical)
Version:3.1.10 OS:Microsoft Windows (Windows)
Assigned to: Mark Matthews CPU Architecture:Any

[23 Aug 2005 10:43] Victor Pyankov
Description:
File Charsets.properties contain erroneous line:
Cp1251 = win1251,\

How to repeat:
Try to connect using russian locale.

Suggested fix:
Delete line "Cp1251 = win1251,\" from Charsets.properties
[23 Aug 2005 10:46] Victor Pyankov
Charsets.properties (fixed)

Attachment: Charsets.properties (application/octet-stream, text), 2.35 KiB.

[23 Aug 2005 10:48] Victor Pyankov
Connector/J version changed from 3.0.10 to 3.1.10
[23 Aug 2005 20:08] Mark Matthews
Can you elaborate on what is wrong with the mapping of CP1251 to win1251? What version of the server are you using?
[24 Aug 2005 5:41] Victor Pyankov
I use MySQL 5.0.10a-beta under WindowsXP.

After connect Connector/J send command "SET NAMES win1251".
This cause error 1115: "Unknown character set: 'win1251'". You may check this easily. Right command is "SET NAMES cp1251".

As I know MySQL don't have win1251 character set, only cp1251.
[30 Aug 2005 19:53] Mark Matthews
Patch is at http://lists.mysql.com/internals/29054

The fix should be available in the nightly snapshot build after 00:00 GMT 31-Aug at http://downloads.mysql.com/snapshots.php#connector-j

Thanks for the bug report.