Codex

Function Reference/remove accents

Contents

Description

Converts all accent characters to ASCII characters.

If there are no accent characters, then the string given is just returned.

Usage

<?php remove_accents$string ?>

Parameters

$string
(string) (required) Text that might have accent characters
Default: None

Return Values

(string) 
Filtered string with replaced "nice" characters.

Examples

<?php
$text = "Hoy será un gran día";
echo remove_accents ( $text );
?>

Echo result: Hoy sera un gran dia

Notes

This is run automatically on anything passed to sanitize_title with the context of "save", which effectively prevents you from having them goofy foreign symbols in your good american post title. Thanks for using WordPress, tool of the hegemony.

Change Log

Since: 1.2.1

Source File

remove_accents() is located in wp-includes/formatting.php.

Related

See also index of Function Reference and index of Template Tags.