Hello Gleb,
as a first test, i tried to reproduce your problem in the playground
but it worked for me:
var data = new qx.data.Array();
data.push("–", "a — b", "abc");
var list = new qx.ui.form.List();
this.getRoot().add(list);
var c = new qx.data.controller.List(data, list);
After that, I created a application loading the following json file:
["–", "a – b", "abc"]
Here is the application code:
var store = new qx.data.store.Json("data.json");
var list = new qx.ui.form.List();
this.getRoot().add(list);
var controller = new qx.data.controller.List(null, list);
store.bind("model", controller, "model");
That also showed the dashed how they are supposed to be. Could you
please check if the data loaded by the store really contains the right
dashes? You can have a look at the loaded raw json data in the json
store in line 150 (__requestCompleteHandler). Maybe the backend does
not transfer the dashed into the qooxdoo application?
Best,
Martin
Am 20.07.2009 um 03:09 schrieb GlebM:
Hi
We are trying qooxdoo in our web application with Rails Backend.
Right now I am struggling to make qooxdoo work with the unicode JSON
data.
The server returns a valid JSON data (generated by "object.to_json").
Here is one of the values copied from the data "a — b".
The problem is that the character in the middle (in html it would be
an & mdash;) does not get displayed correctly in the list, where the
data is binded.
Here is the relevant part of the qooxdoo code:
var controller = new qx.data.controller.List(null, list);
controller.setLabelPath("song.display_name");
this.store = new qx.data.store.Json(url_get);
this.store.bind("model", controller, "model");
I tried searching the mailing list, but I could not find anything.
Maybe someone knows a way to make it work correctly?
Thank you,
Gleb
View this message in context: JSON and UTF-8 issues
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited
time,
vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See
full prize
details at:
http://p.sf.net/sfu/Challenge_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel