How do I automate the removal of all non-ascii characters from my code?

Miki Tebeka miki.tebeka at
Mon Sep 12 15:23:09 CEST 2011

You can add "# coding=UTF8" to the top of your file (see

Of you want to remove unicode, there are several options, one of them is passing the file through "iconv --to ascii".

More information about the Python-list mailing list