Merge pull request #1 from JasonAtGithub/JasonAtGithub-patch-1

Fixed encoding error in subset tool in Windows
This commit is contained in:
JasonAtGithub 2016-08-29 20:50:41 +08:00 committed by GitHub
commit c61fcb9122

View File

@ -2902,7 +2902,7 @@ def main(args=None):
text += g[7:]
continue
if g.startswith('--text-file='):
text += open(g[12:]).read().replace('\n', '')
text += open(g[12:], encoding='utf-8').read().replace('\n', '')
continue
if g.startswith('--unicodes='):
if g[11:] == '*':