[pmwiki-users] utf-8 issue

Petko Yotov 5ko at 5ko.fr
Tue Apr 8 14:58:47 PDT 2025


On 08/04/2025 23:47, t20250408pmwiki at logand.com wrote:
> I would like to use pmwiki but I hit an issue with UTF-8.
>    <?php
>    include_once('pmwiki.php');
>    include_once("scripts/xlpage-utf-8.php");
> but the UTF-8 config is not being picked up.

Welcome to PmWiki!

This inclusion is too late for PmWiki to enable the needed headers and 
the meta tags.

index.php only needs <?php include_once('pmwiki.php');

You should have a file config.php in the pmwiki/local directory, and 
enable UTF-8 in that file.

There is a sample-config.php file in docs/, you can place it in local/ 
and rename it to config.php. It already has the xlpage-utf-8.php file 
included, and is heavily documented.

Petko


> 
> When I save this japanese text:
> 
>    こんにちは
> 
> in a page, I get this
> 
>    こんにちは
> 
> when trying to edit the page again.
> 
> Also there is no mention of UTF-8 in the page HTML source.
> 
> Editing japanese works on pmwiki.org as expected.



More information about the pmwiki-users mailing list