Remove Accents

Remove diacritical marks and accents from Unicode characters, converting them to their ASCII equivalents.

Code

General
import unicodedata
return ''.join(c for c in unicodedata.normalize('NFD', str) if unicodedata.category(c) != 'Mn')

Parameters

The string to normalize

Server

More Python Snippets