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.