[pmwiki-users] utf inclusion - odd behavior.

Petko Yotov 5ko at free.fr
Mon Feb 12 11:02:51 CST 2007


On Monday 12 February 2007 13:43, Seth Cherney wrote:
> I am trying to include utf-8 Greek letters, letters with diacritics, and
> diacritics only characters.  Using the cut and past method works fairly
> well.  However, the result is that, upon save, some of the characters are
> save in the format Χ others are just saved as the letter.  the
> diacritics are never changed to the binary(?whatever that is called?)
> version, but remain as the diacritics.  I would like to force everything of
> any non simple simple latin character to be converted to the binary(?). 
> can I do this?  (I receive indexing errors from the Lucene search on even
> an extended dash like "–").
> Thanks, Seth
>

You need to enable the utf-8 support for PmWiki. Problems like yours happen 
when it is not enabled. In farmconfig.php or config.php, add this line:

include_once($FarmD.'/scripts/xlpage-utf-8.php');

This should fix your site. You may also take a look at this page and fix some 
other inconviniences related to UTF-8:

http://pmwiki.org/wiki/Cookbook/AsSpacedFunctionInUTF-8

See also http://pmwiki.org/wiki/PmWiki/Internationalizations#notes (the Notes 
section).

Petko



More information about the pmwiki-users mailing list