Revision 731
Added by thorn over 16 years ago
functions-utf8.php | ||
---|---|---|
1034 | 1034 |
function entities_to_7bit($str) { |
1035 | 1035 |
// convert to UTF-8 |
1036 | 1036 |
$str = charset_to_utf8($str); |
1037 |
if(!utf8_check($str)) |
|
1038 |
return($str); |
|
1037 | 1039 |
// replace some specials |
1038 | 1040 |
$str = utf8_stripspecials($str, '_'); |
1039 | 1041 |
// translate non-ASCII characters to ASCII |
Also available in: Unified diff
fixed issue in pagename generation if AddDefaultCharset is set (as work-around).