How does WP remove accents from Polish characters?
-
What function does WordPress use to convert Polish characters to English equivalents? For instance ‘?’ to ‘a’.
List of Polish characters:
? ? ? ? ? ń ? ?
? ? ? ? ? ? ? ?When I post these characters in a post title their accents are removed properly by WordPress for the post URL (? becomes l and so on). But if I manually include wp-includes/formatting.php in a new script outside WordPress, the remove_accents() function leaves these characters as-is, and the sanitize_title_with_dashes() function simply deletes these characters.
I’d like to convert these characters in a separate plugin. Does anyone know what function is WordPress using for these characters?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How does WP remove accents from Polish characters?’ is closed to new replies.