Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by jinjun cao on Mar 05, 2008 17:46
open dhtmlx forum
about Loading Content with AJAX

If tabbar hrefmode set to "ajax-html", My html file at server includes chinese, so tabbar's content from ajax-html is incorrect.
how can i control the charset,for example gb2312,utf8 ,and so on

thank you!
Answer posted by Support on Mar 06, 2008 02:26
In case of loading as ajax-html - the loaded content will be just inserted inside current page, so encoding of the master page will be applied to loaded content. Basically its expected that encoding of master page and content loaded by ajax are the same.

If you need to store data in different encodings, you can try "ajax" loading mode, it loads data from XML , which allow to clearly specify encoding by using
<?xml version="1.0" encoding="some" ?>