[ php-blog-Bugs-1461754 ] Permalinks broken for some UTF8 characters
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.serendipity.trackers |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1461754, was opened at 2006-03-31 01:57 Message generated for change (Settings changed) made by cynebeald You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1461754&group_id=75065 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Frontend functions >Group: CVS/SVN/Nightly Status: Open Resolution: None Priority: 5 Submitted By: Kim Sullivan (cynebeald) Assigned to: Nobody/Anonymous (nobody) Summary: Permalinks broken for some UTF8 characters Initial Comment: v1.0-beta2 (also present in the trunk on BerliOS) The serendipity_makeFilename() function in include/functions_permalinks.inc.php tries to apply the utf8_decode() function to ALL utf-8 strings. Unfortunately, when a character doesn't have a ISO-8859-1 representation this function replaces it with a ? (question mark), regardless of the original character (it doesn't leave it intact). This makes it impossible to use the $i18n_filename_from and $i18n_filename_to variables for conversion (because they are applied only after all "interesting" characters have been converted to question marks). This bug affects all locales that contain characters not present in the ISO-8859-1 character set. An example sentence is "à ½luà ¥ouÃÂký kà ¯à  pà ÂÃÂà ¡ernàúpÃÂl ÃÂábelské ódy" from the czech locale which comes out of the utf_decode() function as "?lu?ou?ký k?? p?ÃÂ?ern? úp?l ?ábelskàódy". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1461754&group_id=75065 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642