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

Miki Tebeka miki.tebeka at gmail.com
Mon Sep 12 09:23:09 EDT 2011


You can add "# coding=UTF8" to the top of your file (see http://www.python.org/dev/peps/pep-0263/).

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