Convert Unicode to double ASCII letters in Python (ß -> ss)

Some Unicode characters can also be written as two ASCII letters (e.g.: ß -> ss, å -> aa). Is there any way to convert these in Python, without having a list with all of them?


This kind of conversion is done by a lof of websites, including Stackoverflow (url from this page was converted), and Twitter. I'm curious how they do it.


There are no universal rules.

You could try unidecode module to transliterate Unicode text to ASCII.

Need Your Help

bash scripts to compile and run C++

c++ bash makefile

I'm trying to get into C++ but its annoying to have to run things through the command line with wordy commands so I wanted to make a bash script to simplify the process and run these commands

laravel 5.1 authserviceprovider define a permission

laravel authentication laravel-5.1

Trying to sort out this new AuthServiceProvider in Laravel 5.1.