#39517 closed defect (bug) (worksforme)
American Cent Sign (¢) in Slugs/Permalinks Cannot be read by browser, forces 404 page
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6.1 |
Component: | Permalinks | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
So I am pretty tired of manually fixing this myself in the code every update so here is me contrubting finally to the community. :) I was going to make a pull request but you guys don't use github?!? No worries.
How to reproduce this:
- Create a post with the title "Test ¢". FYI on Mac it is option + 4 to create that symbol.
- Go to the post permalink.
Expected behavior: The page loads just fine.
Actual behavior: 404 because the browser can't interpret ¢ in the URL.
Code fix suggestion:
"¢" => ""
Just add it here: https://github.com/WordPress/WordPress/blob/master/wp-includes/formatting.php#L1616
Looking forward to the next release. :)
Change History (6)
#2
@
6 years ago
Cent signs are allowed in URLs, and they work just fine in WordPress slugs.
Example:
https://cloudup.com/cNWwTs1zGr5
You might need to escape them as %C2%A2, perhaps. But Chrome seems to have no issues with them as-is.
There are a lot more currency symbols, like Bengali Rupee Sign ৳ (U+09F3 ৳) or New Sheqel Sign ₪ (U+20AA ₪) and so on.