Use TinyMCE small tip-in to solve the Chinese language pack

Source: Internet
Author: User
Tags pack

TINYMCE is a well-designed open source WYSIWYG rich text box JavaScript control. We can download the code for free on the internet.

TINYMCE can be easily integrated into any development environment, while also supporting multiple language packs.

However, in the specific use of the process, or need more careful settings, such as set a good TinyMCE language pack, in the when the use is always not normal, can not strive to read the language package content.

Careful study found that the original is because the 2.0 default HttpResponse output encoding is utf-8, rather than Chinese gb2312, or GB18030, Hz so the settings are correct, but the page is executed when the error occurs, The problem of not correctly reading the configuration of the language pack.

We can add to the load process of the page class if the SET statement can solve the problem

response.contentencoding = encoding.getencoding ("gb2312")

After recompiling, the contents of the Chinese language resource bundle can be read normally.

Related Article

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: 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.