Some components in extjs running in IE6 cannot parse JSON data generated by Domino.

Source: Internet
Author: User

Recently, a project management module was developed, using the extjs tree component and the editorgrid component. The background generates JSON data through a proxy to parse the two components. The function is implemented, but some IE6 cannot correctly display the data, so I am depressed for a while. First, upgrade to IE7. Later found that Domino engine is not UTF-8 output, but gb2312 (because some previous modules running in the UTF-8 will cause garbled phenomenon, cannot be changed to the UTF-8 encoding mode ). therefore, the output code of the Domino web engine cannot be modified.

Later, when the proxy outputs JSON data, it's okay to change the encoding to UTF-8. Hehe,CodeThe method is as follows:

Print "Content-Type: text/html; charset = UTF-8"

Print

This shows that extjs only receives UTF-8-encoded data when displaying JSON data. So pay attention when using extjs in gb2312 encoding.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.