Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
joshy committed May 11, 2023
1 parent 6bb5e23 commit 91dc4e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.0.23 - 11.05.23
* Parameter `encoding` is now always encoded to `utf-8` output. This release fixes some of the troubles with encodings.
Thanks to [plessbd](https://github.com/plessbd), [stevengj](https://github.com/stevengj) and [nikita-petrashen](https://github.com/nikita-petrashen)

## v0.0.22 - 18.11.22
* Added parameter `encoding` to rtf_to_text which is set to `utf-8` as a default. Thanks to [jnth](https://github.com/jnth)

Expand Down
2 changes: 1 addition & 1 deletion striprtf/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.22"
__version__ = "0.0.23"
3 changes: 2 additions & 1 deletion striprtf/striprtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def rtf_to_text(text, encoding="utf-8", errors="strict"):
text : str
The rtf text
encoding : str
Output encoding, default is "utf-8"
Output encoding is fixed to "utf-8". It remains
in the signature to not break existing installations.
errors : str
How to handle encoding errors. Default is "strict", which throws an error. Another
option is "ignore" which, as the name says, ignores encoding errors.
Expand Down

0 comments on commit 91dc4e6

Please sign in to comment.