Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 8. november 2024
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Dokumentácia  »  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
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov