actually I try to insert Chinese data to sqlite3 from ActionScript3 using CGI webservice script. for inserting English data it’s working fine. But when I try to insert Chinese data, the URL goes like this /cgi-bin/reg.cgi?username=%E5%A5%A0%E5%9F%BA%E6%95%88%E6%9E%9C%E5%9B%BE
and python script shows that update Error. I just googled and got a idea to use encodeURIComponent("奠基效果图"); . When I use encodeURIComponenet it’s insert data into my database as like this %E5%A5%A0%E5%9F%BA%E6%95%88%E6%9E%9C%E5%9B%BE . And also I tried byteArray.writeUTF("奠基效果图"); , but when use writeUTF() my URL value goes Null. I think I need to use encode UTF-8. But I don’t know how to use that on Action Script. kindly some one suggest some idea to solve this problem. thanks in advance.
actually I try to insert Chinese data to sqlite3 from ActionScript3 using CGI webservice
Share
Do not think about the format which is stored in the Data Base, when you use the
encodeURIComponenet(str)for encoding data, you just usedecodeURIComponent(rstr)for retrieve from data base. it can retrieve the data withdecodedfromat. I think this one helps.