The main goal of this cheat sheet is to collect some common snippets which are related to Unicode. In Python 3, strings are represented by Unicode instead of bytes. Further information can be found on ...
Is there some trick to get translate to work right with unicode strings? I finally gave up in frustration and just used replace as well - horribly inefficient but at least it works.