ternjs / tern_for_vim

Tern plugin for Vim
MIT License
1.83k stars 100 forks source link

Fix 'ascii' codec can't encode character u'\u2716' when tern_show_arg… #99

Closed othree closed 9 years ago

othree commented 9 years ago

When I use show argument hint feature. I will see this error message.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/othree/.vim/bundle/tern_for_vim/script/tern.py", line 318, in tern_lookupType
    if data: tern_echoWrap(data.get("type", ""))
  File "/Users/othree/.vim/bundle/tern_for_vim/script/tern.py", line 314, in tern_echoWrap
    vim.command("echo '{0}'".format(text))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2716' in position 3: ordinal not in range(128)

The reason is the cross sign.

2015-07-09 6 25 55

marijnh commented 9 years ago

Thanks! Merged as 8eb1451