>Hi everyone,Try printing b before you put it into the Queue.
As indicated in the following python script, the dictionary b has
Chinese characters: "ä¸*æ–‡". But a.get() returns the dictionary with a
little bit different format for the "ä¸*文“: '\xd6\xd0\xce\xc4' . How
can I get the dictionary through the Queue as is?
{'a': '\xd6\xd0\xce\xc4', 'c': 'abc', 'b': 1232}>>>import Queue
a = Queue.Queue(0)
b = {'a':'ä¸*æ–‡','b':1232,'c':'abc'}
a.put(b)
c = a.get()
c
The Queue isn't doing anything to the objects you pass through it,
you're just surprised at how repr() is presenting the un-altered
data.
Jean-Paul