Page 1 of 1
Permalinks name bug in Serendipity 0.9-alpha3
Posted: Fri Jul 01, 2005 7:54 pm
by DeepKeeper
When title contains russian symbols - it changes to almost random latin characters in Permalink url.
Re: Permalinks name bug in Serendipity 0.9-alpha3
Posted: Fri Jul 01, 2005 10:38 pm
by garvinhicking
Yes, russian characters are not allowed in the URL and thus are htmlentities-encoded.
We could strip all the characters, but then you'd see nothing in the URL there...
Regards,
Garvin
Posted: Sat Jul 02, 2005 3:08 pm
by DeepKeeper
and how about to use traditional translit table?
(when russian characters will be changed by english characters, or group of characters)
like
а=a
б=b
в=v
...
я=ya
Posted: Sat Jul 02, 2005 3:11 pm
by garvinhicking
Is there a PHP function to get the characters? Remember our PHP files are ISO-8859-1 and cannot contain koi or whatever chars inside the file.
Somewhere in include/functions.iunc.php or include/functions_permalinks.inc.php there is a makeFilename() function that does replacements. I'd like not to add too much overhead there, as the function is called quite often...
Regards,
Garvin
Posted: Sat Jul 02, 2005 3:34 pm
by DeepKeeper
found char replace in functions_permalimks.inc.php - but it is WRONG!
Posted: Sat Jul 02, 2005 4:17 pm
by garvinhicking
What is WRONG?
Regards,
Garvin
Posted: Sat Jul 02, 2005 5:09 pm
by DeepKeeper
My english is really bad, sorry.
sent the right version to
php-blog-devs@lists.sourceforge.net
The wrong is that the autochange list included not all russian characters and that some of them were autochanged to the same english character.