Oh, and don't forget to escape your non-ASCII's (Swedish below):
char_xlat = list(zip('åäöÅÄÖ', [s+';' for s in 'åäöÅÄÖ'.split(';')])) for ch,xlat in char_xlat: msg = msg.replace(ch, xlat)
Ventures of an ex indie game developer
char_xlat = list(zip('åäöÅÄÖ', [s+';' for s in 'åäöÅÄÖ'.split(';')])) for ch,xlat in char_xlat: msg = msg.replace(ch, xlat)