[pmwiki-users] Newbie - UTF-8

Patrick R. Michaud pmichaud at pobox.com
Tue Dec 13 09:00:46 CST 2005


On Tue, Dec 13, 2005 at 03:34:56PM +0100, Jan Erik Moström wrote:
> Patrick R. Michaud <pmichaud at pobox.com> 2005-12-13 15:07:
> > Can you give us some more information about your
> > configuration... are you using XLPage() or otherwise loading any
> > of the xlpage-*.php scripts?
> 
> I'm using the config file that comes with pmwiki, I've uncommented a few
> things and added the following at the end of the file:
> 
> XLPage('se','PmWikiSv.XLPage'); 
> include_once('cookbook/pmcal.php');
> include_once('cookbook/XToDo.php');
> $todo_category_names = array('Allmänt', 'Fixar', 'IT');
> $todo_owner_names = array('Anonymous', 'Mickey Mouse', 'Fixargruppen');

This probably doesn't make a difference for this problem, but calls 
to XLPage really should go near the top of the configuration file 
(and I should probably update sample-config.php to reflect this).

I'm going to guess that your server's libraries are set to return
strings in UTF-8 for the "sv_SE" locale, which is different from
what other servers seem to use.  Out of curiosity, what OS are you
running under?

You might try the following -- after the XLPage(...) line,
add a line like:

    setlocale(LC_ALL, "sv_SE.ISO-8859-1");

and see if that fixes things.  If not, we'll need to do some
investigation of the locale settings on your server.

Pm




More information about the pmwiki-users mailing list