Update: Field "permalink" in DB table permalinks looks quite odd when using unicode characters in author names, category titles or entry titles. Non-ASCII characters are simply kicked out. The malformed entries are produced by function serendipity_makeFilename(). However, this function is also used for HTML output of URLs. I wonder what strange string manipulations it does. For sure, this is not what I would call unicode support.
In my local copy, I have replaced the whole function body by the following code:
Code: Select all
if ($stripDots) {
$str = str_replace('.', '', $str);
}
$str = str_replace(' ', '_', $str);
$str = str_replace('&', '%25', $str);
$str = str_replace('/', '%2F', $str);
return urlencode( $str);
Any comments? Can anybody explain the deeper meaning of the original code?