Created
June 16, 2016 10:20
-
-
Save mastergenius/251a131efccc5e407c1ce1e63164de35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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