I did some tests with some changes to the functions mentioned (and
saving engine.php as utf8 encoded file) (original code line is
commented out):
function BOLTurl2utf ($url) {
## THIS FUNCTION CONVERTS UTF8 PAGENAMES BACK FROM BOLTWIRE URL. SEE
ALSO BOLTuTF2uRL
if (BOLTconfig('BOLTutfpages', 'false') != true) return $url;
if (strpos($url, '%') === false) return $url;
$url = str_replace(Array('%252525', '%2525', '%25'), '%', $url);
#$url = utf8_decode(urldecode($url));
$url = urldecode($url);
return $url;
}
function BOLTutf2url ($utf) {
## THIS FUNCTION CONVERTS UTF8 PAGENAMES TO AN ACCEPTABLE BOLTWIRE
URL. SEE ALSO BOLTurl2utf
if (BOLTconfig('BOLTutfpages', 'false') != true) return $utf;
#$utf = urlencode(utf8_encode($utf));
$utf = urlencode($utf);
$utf = str_replace(Array('%252525', '%2525', '%25'), '%', $utf);
return $utf;
}
creating and editing pages with Chinese utf8 characters, like "一二",
work fine, and the page name is correctly encoded, i.e. like
%e4%b8%80%e4%ba%8c on my Windows XP file system. In Firefox url bar
it shows as Chinese characters.
Linley - perhaps you can try those changes to the functions in
engine.php (right at the bottom) an ddo some more elaborate tests.
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
-~----------~----~----~----~------~----~------~--~---