Apolyton CTP2 section
Apolyton CTP2 files
Apolyton CTP2 forums
Source Code Project SVN
||Search the Wiki:|
PagesRecent Changes Search
Create a new page:
AE Modding Wiki : PmWiki : UTF-8
Summary: Enabling UTF-8 Unicode language encoding in your wiki.
UTF-8 supports all languages and alphabets, including Asian languages and their character depth. It is a widely supported and flexible character encoding.
It's fairly simple to enable UTF-8 on your wiki pages. Current PmWiki versions have the UTF-8 file which needs to be enabled.
Enabling UTF-8 on a new wiki
If you start a new wiki in any language with the latest PmWiki version, it is highly recommended to enable UTF-8. In the future, PmWiki will change to use the UTF-8 encoding by default, so if you already use it, you will not need a complex "migration" to UTF-8 later.
To enable UTF-8 for a new wiki, add this line near the beginning of config.php:
Enabling UTF-8 on existing wikis
Currently, this is possible only if your group and page names, as well as upload names, don't contain international characters. The names of wiki pages are used as file names, and we don't have yet an easy way to rename the disk files.
If your wiki doesn't have international page/file names, first upgrade to the latest PmWiki version. To enable UTF-8, add these lines near the beginning of config.php:
include_once("scripts/xlpage-utf-8.php"); $DefaultPageCharset = array(''=>'ISO-8859-1'); # see below
The $DefaultPageCharset line is there to fix and correctly handle some pages with missing or wrong attributes, created by older PmWiki versions.
You should also delete the file
Page last modified on November 12, 2012, at 10:52 AM
|AE Modding Wiki built with PmWiki Design: BureauBert|