Leading b in python pika response
Adding to yichucai's correct answer, I found that you can add the decode()
method directly to the body var inside print. Like so:
print(" [x] Received %r" % body.decode())
You may use decode() to convert the string to utf-8 and then print it out, something like
str = 'your str'
print(str.decode())