Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mrchnk/f9020d1837878d73dc6d49d7e3d97bd9 to your computer and use it in GitHub Desktop.
Save mrchnk/f9020d1837878d73dc6d49d7e3d97bd9 to your computer and use it in GitHub Desktop.
import os
for root, dirs, files in os.walk(u"./perfum-graphics/"):
for name in files:
fixed_name = name.encode('cp1252').decode('cp1251')
print fixed_name
os.rename(os.path.join(root, name), os.path.join(root, fixed_name))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment