Skip to content

Commit

Permalink
Assume UTF-8 for text encoding
Browse files Browse the repository at this point in the history
addresses CriticMarkup#33

Just using `open` tends to expect ASCII encoding. UTF-8 seems to be a
more sensible default.

Maybe in the long run, an encoding parameter makes sense?
  • Loading branch information
teoric committed Jul 7, 2015
1 parent 6e3b703 commit ecd07d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CLI/criticParser_CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def markProcess(group_object):


if args.source:
inputFile = open(args.source, "r")
inputFile = codecs.open(args.source, "r", encoding="UTF-8")
inputText = inputFile.read()
inputFile.close()
else:
Expand Down

0 comments on commit ecd07d5

Please sign in to comment.