[wp-hackers] Post slug bug

Dougal Campbell dougal at gunters.org
Fri Jun 1 22:24:26 GMT 2007


Do we have an easy way to know which non-ASCII characters are
non-alphanumeric when we start talking about UTF characters from
non-English languages? How do we distinguish "word" characters from
punctuation when we start dealing with Russian, Chinese, Hebrew, etc? If
there isn't a reliable function for that already (I'm not sure, myself,
I'll leave a definitive answer up to someone with more i18n experience),
then the url-encoding mentioned here is still the best way to handle it,
I think.



Robin Adrianse wrote:
> The %stuff is the URL code for the upside down question mark. I
> suppose we
> could just strip out all non-alphanumeric characters when creating the
> slug.
>
> On 5/31/07, Marcos Sader | marcosmedia <m at marcosmedia.com> wrote:
>>
>> Given the title "¿Qué es un blog?" i get this permalink,
>>
>> http://defmay.com/2007/05/14/%c2%bfque-es-un-blog/
>>
>> instead of
>>
>> http://defmay.com/2007/05/14/que-es-un-blog/
>>
>> It seems like the slug is not recognizing the opening "¿", it never
>> happened before... running 2.2 stable.
>>
>> -- 
>> Marcos Sader
>> m at marcosmedia.com
>> http://defmay.com | http://marcosmedia.com
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>>
> ------------------------------------------------------------------------
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>   


-- 
Dougal Campbell <dougal at gunters.org>
http://dougal.gunters.org/



More information about the wp-hackers mailing list