[pmwiki-users] no umlauts in wikilinks

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 14 09:43:41 CST 2006


On Tue, Mar 14, 2006 at 04:26:19PM +0100, noskule wrote:
> hi list
> I allways have the problem that umlauts are not  correctly working. If I 
> install a new version of pmwiki and make a link
> 
> [[Über Uns]]
> 
> the link looks correct but the pagename changes to "BerUns" . On 
> pmwiki.org it works like it should but not on my hostingacount. Dos 
> anyone have a hint whats wrong?

Your hosting account's libraries aren't recognizing Ü as being a letter.
Such information is normally stored in the "locale" libraries in the
OS; but if the hosting provider doesn't bother to supply them,
then PHP doesn't think of accented characters as being letters
(or know how to do case conversions, or a number of other things).

Try explicitly setting a locale in local/config.php.  For example,
for German try one of:

    setlocale(LC_ALL, 'de_DE');
    setlocale(LC_ALL, 'german');
    setlocale(LC_ALL, 'de');

The pmwiki.org site essentially does the equivalent of

    setlocale(LC_ALL, 'en_US');

(the en_US locale on my systems does understand the Latin-1 alphabet).

If none of those work, you may be stuck, unless you can get the
hosting provider to make the locale libraries available.

Or, you may need to switch to using a UTF-8 character set.  UTF-8 
doesn't really know how to recognize letters either, so WikiWords 
won't work, but at least PmWiki has workarounds in place for 
supporting UTF-8 characters in page names.

Pm




More information about the pmwiki-users mailing list