Thanks! I just figured out another way of not using the whole array…
str::$ascii['/Ä/'] = 'A';
str::$ascii['/æ|ǽ|ä/'] = 'a';
str::$ascii['/œ|ö/'] = 'o';
Your way is more beautiful, especially if you need to change more.
To all the swedish people
So swedish people (if any), here is all you need to have it the WordPress way, all cred to @distantnative…
Put it in config.php.
str::$ascii = a::merge(str::$ascii,
array(
'/Ä/' => 'A',
'/æ|ǽ|ä/' => 'a',
'/œ|ö/' => 'o',
'/Ö/' => 'O',
'/ö/' => 'o',
)
);
Works with ÅÄÖ and åäö.