{"action":"created","issue":{"url":"https://api.github.com/repos/msgpack/msgpack-python/issues/180","repository_url":"https://api.github.com/repos/msgpack/msgpack-python","labels_url":"https://api.github.com/repos/msgpack/msgpack-python/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/msgpack/msgpack-python/issues/180/comments","events_url":"https://api.github.com/repos/msgpack/msgpack-python/issues/180/events","html_url":"https://github.com/msgpack/msgpack-python/issues/180","id":148767536,"number":180,"title":"Supporting Unicode values.","user":{"login":"buriy","id":21124,"avatar_url":"https://avatars.githubusercontent.com/u/21124?v=3","gravatar_id":"","url":"https://api.github.com/users/buriy","html_url":"https://github.com/buriy","followers_url":"https://api.github.com/users/buriy/followers","following_url":"https://api.github.com/users/buriy/following{/other_user}","gists_url":"https://api.github.com/users/buriy/gists{/gist_id}","starred_url":"https://api.github.com/users/buriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buriy/subscriptions","organizations_url":"https://api.github.com/users/buriy/orgs","repos_url":"https://api.github.com/users/buriy/repos","events_url":"https://api.github.com/users/buriy/events{/privacy}","received_events_url":"https://api.github.com/users/buriy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-15T20:56:23Z","updated_at":"2016-04-16T07:40:15Z","closed_at":null,"body":"```\r\nIn [1]: import msgpack\r\n\r\nIn [13]: msgpack.version\r\nOut[13]: (0, 4, 7)\r\n\r\nIn [3]: msgpack.dumps(u'asd', encoding=None)\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-11-a642531abdda> in <module>()\r\n----> 1 msgpack.dumps(u'asd', encoding=None)\r\n\r\n/usr/local/lib/python2.7/dist-packages/msgpack/__init__.pyc in packb(o, **kwargs)\r\n     45     See :class:`Packer` for options.\r\n     46     \"\"\"\r\n---> 47     return Packer(**kwargs).pack(o)\r\n     48 \r\n     49 # alias for compatibility to simplejson/marshal/pickle.\r\n\r\nmsgpack/_packer.pyx in msgpack._packer.Packer.pack (msgpack/_packer.cpp:231)()\r\n\r\nmsgpack/_packer.pyx in msgpack._packer.Packer.pack (msgpack/_packer.cpp:233)()\r\n\r\nmsgpack/_packer.pyx in msgpack._packer.Packer._pack (msgpack/_packer.cpp:173)()\r\n\r\nTypeError: Can't encode unicode string: no encoding is specified\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/msgpack/msgpack-python/issues/comments/210758406","html_url":"https://github.com/msgpack/msgpack-python/issues/180#issuecomment-210758406","issue_url":"https://api.github.com/repos/msgpack/msgpack-python/issues/180","id":210758406,"user":{"login":"buriy","id":21124,"avatar_url":"https://avatars.githubusercontent.com/u/21124?v=3","gravatar_id":"","url":"https://api.github.com/users/buriy","html_url":"https://github.com/buriy","followers_url":"https://api.github.com/users/buriy/followers","following_url":"https://api.github.com/users/buriy/following{/other_user}","gists_url":"https://api.github.com/users/buriy/gists{/gist_id}","starred_url":"https://api.github.com/users/buriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buriy/subscriptions","organizations_url":"https://api.github.com/users/buriy/orgs","repos_url":"https://api.github.com/users/buriy/repos","events_url":"https://api.github.com/users/buriy/events{/privacy}","received_events_url":"https://api.github.com/users/buriy/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T07:40:14Z","updated_at":"2016-04-16T07:40:14Z","body":"In [11]: msgpack.unpackb(msgpack.packb(u'Hi',use_bin_type=True))\r\nOut[11]: 'Hi'\r\nDoesn't work with Unicode either -- instead encoding it to str.\r\nPlease suggest a way to send Unicode strings without converting them to str."}}