Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 13, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Documentation  »  HTML  »  Handling national characters

6.2. Handling national characters

phpMyEdit is used across the whole world by many users of various nationalities speaking and writing several different languages. The most common problem that occured for people located in the east, central or north Europe, Asia and other countries is, that phpMyEdit does not handle their national language characters correctly.

The reason for this is very simple. In order to simplify phpMyEdit integration into larger production systems, the generated code does not contain by default any HTML header or footer. But even if the HTML header and footer is turned on, the generated META tags do not contain any entry defining the proper type of content and character set. It's up to you to send this kind information with the served page. You can do this using HTTP protocol headers or HTML META tags.

Below are two examples how to define an iso-8859-2 character set for the HTML page. This charset is most suitable for countries in central Europe, such as Slovakia, Czech republic, Poland, and so on. For your country you will certainly need to determine the appropriate character set.

Example 6-1. Charset defined with META tag

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">

Example 6-2. Charset defined with HTTP header

<?php
       header('Content-Type: text/html; charset=iso-8859-2');
?>


Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy