Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ouyang on Jul 02, 2008 20:53
open dhtmlx forum
Does dhtmlxToolBar support displaying Chinese Charaters?

Hi,
I am looking for the solution (as indicated in the topic). After searching the knowlege base, I found a silimar question for dhtmxTree but such function: setEscapingMode is not implemented in dhtmlxToolBar.js. Any easy way to display Chinese characters in dhtmlxToolBar? Thanks in advance.

///////////////////////////////////////////////////////
The dhtmlxTree is a pure html component so it must work with any browser encoding. To work correctly with UTF you need to do next:
a) Set page encoding to UTF
b) Be sure that XML has correct header
<?xml version='1.0' encoding='utf-8'?>
c) Enable utf escaping
tree.setEscapingMode("utf8");
//////////////////////////////////////////////////////

Thanks for your answer for my previous questions:
http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=7&page=1&q=3882
I got it work with your answer #1. But tabbar.tabWindow('b3') returns an error message like: "tabbar.tabWindow(...) is empty or not an object".


Ouyang
Answer posted by Support on Jul 07, 2008 08:22
>>setEscapingMode is not implemented in dhtmlxToolBar.js
this functionality used to send data back to server side, there is no need in any additional processing when you loading data
Please be sure that
a) xml contains correct encoding attribute
b) page in XML , both loaded in same encoding

If problem still occurs for you -please send any kind of sample where issue can be reconstructed to support@dhtmlx.com