aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index 53aeb2f..84d79ea 100755
--- a/epy.py
+++ b/epy.py
@@ -797,7 +797,7 @@ class Mobi(Epub):
def get_raw_text(self, content_path: Union[str, ET.Element]) -> str:
assert isinstance(content_path, str)
- with open(content_path) as f:
+ with open(content_path, encoding="utf8") as f:
content = f.read()
# return content.decode("utf-8")
return content