lecosson / assql

Automatically exported from code.google.com/p/assql
0 stars 0 forks source link

full International Support #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
assql should get mysql character set and use it in assql.

The following is a rough proposed changes. 

Connection.as
use packet.writeMultiByte(data,#mysql character set#) to replace
    packet.writeUTFBytes(data);

ResultSet.as
and data.readMultiByte(data.bytesAvailable,#mysql character set#) to replace 
    data.readUTFBytes(data.bytesAvailable)

HandshakeHandler.as
//language
packet.writeByte( 8 ); //charset
replace to this
//language
packet.writeByte( getMysqlCharacterSetCode(#mysql character set#));//charset

Original issue reported on code.google.com by xtlinyon...@gmail.com on 10 Jun 2008 at 8:55

GoogleCodeExporter commented 9 years ago
I am currently in the process of looking into this. It seems to be more 
complicated
then simply setting the charset as that causes issues with binary data and blob 
fields. 

I am trying to sift through the ConnectorJ source code to see how exactly it is 
being
done in java.

If anyone has more experience in internationalization then I do any help would 
be
great :)

Original comment by macl...@gmail.com on 10 Jun 2008 at 7:01

GoogleCodeExporter commented 9 years ago

Original comment by macl...@gmail.com on 10 Jun 2008 at 10:05

GoogleCodeExporter commented 9 years ago

Original comment by macl...@gmail.com on 10 Jun 2008 at 11:01

GoogleCodeExporter commented 9 years ago

Original comment by macl...@gmail.com on 14 Jun 2008 at 11:21