[wp-hackers] Adding non English character ranges

Ryan McCue lists at rotorised.com
Wed Oct 3 10:03:53 UTC 2012

Tom Barrett wrote:
> I have an A to Z list. It's a simple range('a','z') to loop through and
> match against the first letter of post_title.
> This doesn't work for non English characters (e.g. Scandinavian æ/ae, ø/oe,
> å/aa). What's the best way of handling this?

Depends on what you're trying to do, but remove_accents() (see
wp-includes/formatting.php, ~L607) will convert these into their
Romanised form or nearest approximation where possible.

Ryan McCue

More information about the wp-hackers mailing list