Finding non ascii characters in a set of files

bg_ie at yahoo.com bg_ie at yahoo.com
Fri Feb 23 09:38:41 EST 2007


Hi,

I'm updating my program to Python 2.5, but I keep running into
encoding problems. I have no ecodings defined at the start of any of
my scripts. What I'd like to do is scan a directory and list all the
files in it that contain a non ascii character. How would I go about
doing this?

Thanks,

Barry.




More information about the Python-list mailing list