Issue with special characters in jstree
We have a JSTREE which work well with xml data. But when the data contains special characters, the tree is not working with IE
- $("#treeId").jstree({
- "xml_data": {
- "ajax": {
- "url": "/getTree",
- "type": "post",
- "data": function (node) {
- var data = {};
- data.selectedNodeId = "";
- data.expandAll = "true";
- if(node == -1) {} else {
- data.selectedNodeId = node.attr("id");
- }
- return data;
- },
- "success": function (data) {
- return data;
- }
- },
- "xsl": "nest"
- },
- "plugins": ["themes", "xml_data"]
- });
The xml that we have used is
- <?xml version="1.0" encoding="UTF-8"?>
- <root>
- `
- <item id="id_1_1_2_1">
- <content>
- <name>
- <![CDATA[Name Text : Débosselage]]>
- </name>
- </content>
- </item>
- <item id="id_1_1_2_2">
- <content>
- <name>
- <![CDATA[Format Code : 0 - Unknown]]>
- </name>
- </content>
- </item>
- </root>
`
Nothing loads in IE, the data returned is in xmlstring, Please help me in in fixing this. We need to take the date in utf8 format in jstree
Thanks In Advance Hari