Skip to content

Commit

Permalink
msgpack: specify encoding togheter with unicode_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bfredl committed Feb 2, 2018
1 parent 80428b1 commit 6fc0343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neovim/msgpack_rpc/msgpack_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class MsgpackStream(object):
def __init__(self, event_loop):
"""Wrap `event_loop` on a msgpack-aware interface."""
self._event_loop = event_loop
self._packer = Packer(unicode_errors=unicode_errors_default)
self._packer = Packer(encoding='utf-8',
unicode_errors=unicode_errors_default)
self._unpacker = Unpacker()
self._message_cb = None

Expand Down

0 comments on commit 6fc0343

Please sign in to comment.