[wp-trac] [WordPress Trac] #10966: bug: Post Slug in Quick-Edit mode for non-english languages
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 30 06:46:37 UTC 2009
#10966: bug: Post Slug in Quick-Edit mode for non-english languages
-------------------------------------------------+--------------------------
Reporter: ramiy | Type: defect (bug)
Status: new | Priority: high
Milestone: 2.9 | Component: Quick Edit
Version: 2.9 | Severity: critical
Keywords: has-patch needs-testing 2nd-opinion |
-------------------------------------------------+--------------------------
Changes (by dwright):
* cc: david_v_wright@… (added)
* keywords: => has-patch needs-testing 2nd-opinion
Comment:
What I understand this issue to be:
This issue demonstrates that the slug displays to the user in it's (url)
encoded form.
The slug is used in urls.
http://www.faqs.org/rfcs/rfc1738.html
URLs are written only with the graphic printable characters of the
US-ASCII coded character set. The octets 80-FF hexadecimal are not
used in US-ASCII, and the octets 00-1F and 7F hexadecimal represent
control characters; these must be encoded.
So, while the slug appears to the end user as 'gibberish letters' it is
actually the
(properly) encoded version of the string.
To resolve this issue, display the slug to the user decoded.
(i.e. so it looks like it did when they created it)
I don't know Hebrew, so to recreate this issue, I set the slug to name
that contains non US-ASCII characters.
Categories -> Category Name (testing) -> Category Slug
(internationalizætiøn)
see attached before and after screen shots.
see attached patch files
these changes 'work', I'm just not sure it's the most appropriate/elegant
solution, someone more familiar with the code base should review. (I
believe I have added the necessary keywords)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10966#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list