Re: utf-8 issue
Petko Yotov <[email protected]> Tue, 08 Apr 2025 23:58:47 +0200
| Newsgroups | gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <[email protected]> |
On 08/04/2025 23:47, [email protected] 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. _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users