Skip to content

Commit

Permalink
add reading always in utf8 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndGem authored Jan 19, 2020
1 parent 2ebad1e commit 529e7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osm/xml_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PercentageFile(object):
def __init__(self, filename: str) -> None:
self.size = os.stat(filename)[6]
self.delivered = 0
self.f = open(filename)
self.f = open(filename, encoding="utf-8")
self.percentages = [1000] + [100 - 10 * x for x in range(0, 11)]

def read(self, size: Optional[int] = None) -> str:
Expand Down

0 comments on commit 529e7ca

Please sign in to comment.