[wp-trac] [WordPress Trac] #4739: Some icelandic letters do not
work in page slugs
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 13 15:09:10 GMT 2007
#4739: Some icelandic letters do not work in page slugs
--------------------+-------------------------------------------------------
Reporter: einare | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2.3
Component: i18n | Version: 2.2.1
Severity: minor | Keywords:
--------------------+-------------------------------------------------------
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',
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4739>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list