lecosson / assql

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

Error: Unsupported Char Set #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. following the fix for new flash player 9.124
2. following the first example for connecting to mysql database
3.

What is the expected output? 
to see datagrid connected to mysql server

What do you see instead?
Error: Unsupported Char Set
at
CharSets$/as3CharSetFromMysqlCharSet()[/Users/Matt/Documents/FlexBuilder3/assql/
com/maclema/mysql/CharSets.as:32]
    at
com.maclema.mysql::Connection/initConnection()[/Users/Matt/Documents/FlexBuilder
3/assql/com/maclema/mysql/Connection.as:322]
    at
HandshakeHandler/newPacket()[/Users/Matt/Documents/FlexBuilder3/assql/com/maclem
a/mysql/HandshakeHandler.as:98]
    at
DataHandler/pushPacket()[/Users/Matt/Documents/FlexBuilder3/assql/com/maclema/my
sql/DataHandler.as:48]
    at
com.maclema.mysql::Connection/checkForPackets()[/Users/Matt/Documents/FlexBuilde
r3/assql/com/maclema/mysql/Connection.as:439]
    at
com.maclema.mysql::Connection/onSocketData()[/Users/Matt/Documents/FlexBuilder3/
assql/com/maclema/mysql/Connection.as:413]

What version of the product are you using? On what operating system?
the newest assql 2.6beta .. on a ubuntu linux 7.10 server .Apache/2.2.4
PHP/5.2.6-0.dotdeb.1

Please provide any additional information below.

I am a newbie to flex and to your script so I am not sure if I just did not
follow the instructions close enough.. However I wanted to possibly lend a
hand .. just in case this is a true bug.. 

Original issue reported on code.google.com by projectr...@gmail.com on 17 Jun 2008 at 5:34

GoogleCodeExporter commented 9 years ago
Did you specify a character set in the connect method?

Original comment by macl...@gmail.com on 17 Jun 2008 at 11:37

GoogleCodeExporter commented 9 years ago
Also, could you enable logging and possible post the results here. You can do 
this by
simply adding this line before you call connect.

Logger.level = Logger.DEBUG;

Original comment by macl...@gmail.com on 17 Jun 2008 at 11:39

GoogleCodeExporter commented 9 years ago

Original comment by macl...@gmail.com on 15 Jul 2008 at 5:10

GoogleCodeExporter commented 9 years ago
I'm getting the exact same error when attempting to run the first example. Did 
projectrecruits ever notify you of how the problem was solved?

Original comment by hugh.whi...@gmail.com on 18 Jul 2008 at 7:16

GoogleCodeExporter commented 9 years ago
change line 74 in MySqlService.as from:

        public var charSet:String = "utf-8";
to
        public var charSet:String = "utf8";

seemed to work for me.  hope it helps

tony

Original comment by great...@gmail.com on 29 Jul 2008 at 5:36

GoogleCodeExporter commented 9 years ago
I have found exatly the opposite. I had to set charSet as "utf-8" to work as
expected, if not, I get screwed characters whe using special characters like à

Original comment by cuatrome...@gmail.com on 28 Jan 2009 at 7:28