Created
August 5, 2017 11:49
-
-
Save kimdwkimdw/c1f48a6b0ed9ac3f128ce8bfb4aa8819 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from glob import glob | |
for filename in glob("[!utf8_]*"): | |
with open(filename, encoding="cp949") as fr, \ | |
open("utf8_" + filename, encoding="utf-8", mode="w") as fw: | |
fw.writelines(fr.readlines()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment