Make WordPress Core

Opened 14 years ago

Last modified 8 years ago

#4739 closed defect (bug)

Some icelandic letters do not work in page slugs — at Initial Version

Reported by: einare Owned by: anonymous
Milestone: Priority: high
Severity: major Version: 2.2.1
Component: Permalinks Keywords: early 2nd-opinion dev-feedback has-patch
Focuses: Cc:


When the page slug is generated from the post title, three icelandic letters are not converted correctly. These three letters are Ð ð, Þ þ and Æ æ. They should be converted to D d, TH th and AE ae but are not.

For instance, when I made a post with the title ‘Þátturinn’ the post-slug would become ‘þatturinn’ and when I tried to enter that address in my address bar it changed to ‘%c3%beatturinn’ and I got a ‘page not found’ error from Wordpress.

This can be fixed by adding the following six lines to formatting.txt, in the function remove_accents, inside the if (seems_utf8($string)) { condition.

chr(195).chr(144) => 'D', 
chr(195).chr(176) => 'd',
chr(195).chr(158) => 'TH',
chr(195).chr(190) => 'th',
chr(195).chr(134) => 'AE',
chr(195).chr(166) => 'ae',

Change History (1)

14 years ago

Fix for the ticket

Note: See TracTickets for help on using tickets.