This PR fixes #48 by passing allow_unicode=True to yaml.dump(). Since doing only that would include unicode characters in saved response content (which would necessitate special care when writing and reading files), we also encode to ascii with backslashreplace and save the resulting bytes.
This PR fixes #48 by passing
allow_unicode=True
toyaml.dump()
. Since doing only that would include unicode characters in saved response content (which would necessitate special care when writing and reading files), we also encode to ascii with backslashreplace and save the resulting bytes.A possible test would be: