py-amqp icon indicating copy to clipboard operation
py-amqp copied to clipboard

Tables with unicode values fail to be serialized correctly

Open thedrow opened this issue 6 years ago • 1 comments

On Python 2 the following dictionary:

{'': '\x80'}

is deserialized as:

{'': '\xc2\x80'}

That's incorrect and we should find a way to fix it.

The problem is the fact that '\x80' is a byte string but it is not specified as such. It should not be encoded to a unicode string. On Python 3, this is fixed because unicode is fixed.

thedrow avatar Mar 13 '19 14:03 thedrow

This is a very low priority issue. If it's not fixed before py-amqp 5.0 we will close it as we're dropping Python 2.7 support.

thedrow avatar Apr 02 '19 15:04 thedrow