Unicode conversion for double ASCII letters in Python (ß & # 8594; ss)

Some Unicode characters can also be written as two ASCII letters (for example: ß → ss, å → aa). Is there a way to convert them to Python without having a list with all of them?

LATER EDIT:

This type of conversion is done through several websites, including Stackoverflow (the URL from this page has been converted) and Twitter. I'm curious how they do it.

+5
source share
1 answer

There are no universal rules.

You can try the unidecode module to translate Unicode text to ASCII.

+7
source

All Articles