djangosnippets.org: Latest snippets posted by coordthttps://djangosnippets.org/users/coordt/2008-02-06T18:14:06.699953-06:00coordtConvert Unicode to ASCII
2008-02-06T18:14:06.699953-06:00coordthttps://djangosnippets.org/snippets/588/<p>Unicode is great, but there are places where the conversion ends up with unintelligible characters. I first noticed this with curly quotes entered in forms on our site.</p>
<p><code>unicode_to_ascii</code> converts compound characters to close approximations in ASCII: such as umlaut-u to u, 1/2 (fraction glyph) to 1/2. You can add …</p>
Freely redistributable