Hello, I'm using qx.io.rpc to call PHP method to retrieve data from a DB (especially french words with accent). I have errors when I execute this code :
*** frontend code (Javascript file stored in UTF8) var txt=new qx.ui.form.TextField("???????"); // special chars here txt.addToDocument() var r=new qx.io.remote.Rpc(); r.set({timeout:10000, url:SERVICE_URL, serviceName:"myServices.myClass", crossDomain:false}); result=r.callSync("myFunction",null); txt.setValue(eval(result)) *** backend code (php file stored in ANSI ; UTF8 source encoding seems not supported with PHP5.1) class class_myClass { function method_myFunctionl(){ return "?????"; // special chars here }} When the backend code is executed there is a error like this : 069005 ERROR: qx.manager.selection.VirtualSelectionManager[240]: Could not dispatch event of type ".....": TypeError - result has no properties at http://127.0.0.1/........js:129 at http://127.0.0.1/qooxdoo//frontend/framework/source/class/qx/core/Target.js:221 [...] http://127.0.0.1/qooxdoo//frontend/framework/source/class/qx/event/handler/EventHandler.js:40 and in PHP log I have the following error : PHP Notice: Uninitialized string offset: 15 in C:\.....\services\JSON.phps on line 314 How to handle special chars with qx.io.rpc ? something to do on php code ? cheers. frederic -- View this message in context: http://www.nabble.com/qx.io.rpc-and-special-chars-tf2340705.html#a6514451 Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel