By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,595 Members | 1,443 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,595 IT Pros & Developers. It's quick & easy.

how to pass a dictionary (including chinese characters) through Queueas is?

P: n/a
Hi everyone,
As indicated in the following python script, the dictionary b has
Chinese characters: "中文". But a.get() returns the dictionary witha
little bit different format for the "中文“: '\xd6\xd0\xce\xc4' . How
can I get the dictionary through the Queue as is?
>>import Queue
a = Queue.Queue(0)
b = {'a':'中文','b':1232,'c':'abc'}
c = a.get()
{'a': '\xd6\xd0\xce\xc4', 'c': 'abc', 'b': 1232}


Oct 25 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.