Skip to content

v0.6.0 — `ensure_ascii`

Compare
Choose a tag to compare
@jwodder jwodder released this 28 Feb 15:57
· 89 commits to master since this release
v0.6.0
  • Include changelog in the Read the Docs site
  • Support Python 3.8
  • When dumping a value that begins with more than one space, only escape the first space in order to better match Java's behavior
  • Gave dump(), dumps(), escape(), and join_key_value() an ensure_ascii parameter for optionally not escaping non-ASCII characters in output
  • Gave dump() and dumps() an ensure_ascii_comments parameter for controlling what characters in the comments parameter are escaped
  • Gave to_comment() an ensure_ascii parameter for controlling what characters are escaped
  • Added a custom encoding error handler 'javapropertiesreplace' that encodes invalid characters as \uXXXX escape sequences