For reasons I don't control, I have to convert (English) text with some Unicode characters to ASCII (for further processing elsewhere). For example:
Deutsche Börse
When I do:
u'Deutsche Börse'.encode(encoding='ascii', errors='replace')
I get
b'Deutsche B?rse'
Which is not exactly what I need. Ideally I would like to get Deutsche Borse
.
I realize of course that vast majority of Unicode characters that's not possible. But for many important names, like say Quebec
, that's possible in principle.
How can I do that?