Skip to content

Commit 57d1ad5

Browse files
author
Sven Siegmund
committed
Corrected the output encoding for de-encapsulated html
1 parent 3624a36 commit 57d1ad5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rtfparse/entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def argument_parser() -> argparse.ArgumentParser:
5757

5858
def de_encapsulate(rp: Rtf_Parser, target_file: pathlib.Path) -> None:
5959
renderer = de_encapsulate_html.De_encapsulate_HTML()
60-
with open(target_file, mode="w", encoding="cp1252") as htmlfile:
60+
with open(target_file, mode="w", encoding="utf-8") as htmlfile:
6161
logger.info(f"Rendering the encapsulated HTML")
6262
renderer.render(rp.parsed, htmlfile)
6363
logger.info(f"Encapsulated HTML rendered")

src/rtfparse/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python
22

33

4-
version = "0.7.5"
4+
version = "0.7.6"

0 commit comments

Comments
 (0)