> I got  a question: why is there a config option of utfpages =  true or
> false ? Do we need it?

To answer this myself:
Use utfpages: false in site.config to create page names stripped of
diacritics found in Western European languages.

But i found that the switch did not work, and that the stripping did
not work either.

function BOLTpageshortcuts this line

     if (BOLTconfig('BOLTutfpages', 'true') == true)

always produced true. It needs a better logic. I used this instead:

        global $BOLTconfig;
        if ($BOLTconfig['utfpages'] === 'false') $link = BOLTutf8_strip($link);
        else $link = BOLTutf2url($link);

Even with the switch logic working the function BOLTutf8_strip()
failed. It should not have the utf8_decode.
and i don't think it needs the utf8_encode either. This at the end was
sufficient:

      return strtr($text, $utf2asc);

with that the stripping of diacritics worked.

Cheers,
~Hans

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to