The Movable Type Knowledge Base

Characters In My Language Are Encoded Incorrectly

Question

When viewing my pages, characters in my language are encoded incorrectly.

Answer

When encoding characters into HTML entities (either for editing, or when you use the encode_html global tag attribute), Movable Type uses the HTML::Entities Perl module, if your server has it; otherwise, it uses a simple encoding that encodes <, >, and & into the proper entities.

In some cases, however, HTML::Entities will not work properly for your characters. This may happen, for example, if your characters are encoded in a different character set (if you are writing in Polish, Russian, etc). In this case, edit mt-config.cgi1, and add the line:

NoHTMLEntities 1

This will tell Movable Type to use its simple encoding, which will not interfere with the special characters you are using.

1 In versions prior to 3.2, the configuration file is named mt.cfg.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.