have around 600,000 files encoded in ansi , want convert them utf-8. can individually in notepad++, can't 600,000 files.can in r or python?
i have found link python script not running: notepad++ converting ansi encoded file utf-8
why don't read file , write utf-8? can in python.
#to support encodings import codecs #read input file codecs.open(path, 'r', encoding = 'utf8') file: lines = file.read() #write output file codecs.open(path, 'w', encoding = 'utf8') file: file.write(lines)
Comments
Post a Comment