Permalinks name bug in Serendipity 0.9-alpha3

Found a bug? Tell us!!
Post Reply
DeepKeeper

Permalinks name bug in Serendipity 0.9-alpha3

Post by DeepKeeper »

When title contains russian symbols - it changes to almost random latin characters in Permalink url.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Permalinks name bug in Serendipity 0.9-alpha3

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DeepKeeper

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DeepKeeper

Post by DeepKeeper »

found char replace in functions_permalimks.inc.php - but it is WRONG!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What is WRONG? :-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
DeepKeeper

Post 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.
Post Reply