Skip to content

py3 text_to_bytes(unicode_string) results in mojibake #154

@escapewindow

Description

@escapewindow

https://simple.wikipedia.org/wiki/Mojibake

In Python3, PGPMessage.new(unicode_string) munges the string even before any encryption happens. This is because PGPObject.text_to_bytes() is munging the unicode. This results in an undecodable byte string.

The currently Py3 workaround is to PGPMessage.new(unicode_bytearray).

This issue tracks fixing PGPMessage.new(unicode_string).

See #153 for STR tests.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions