paradigm / tex2unicode

convers TeX-style input from weechat to unicode
4 stars 2 forks source link

unicode error #1

Open myano opened 13 years ago

myano commented 13 years ago
21:01:32  weechat     | python: stdout/stderr: Traceback (most recent call last):
21:01:32  weechat     | python: stdout/stderr:   File "/home/yano/.weechat/python/tex2unicode.py", line 81, in
                      | command_run_input
21:01:32  weechat     | python: stdout/stderr:     weechatbuffer = unicode(weechat.buffer_get_string(buffer, 'input'))
21:01:32  weechat     | python: stdout/stderr: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 28: ordinal
                      | not in range(128)
21:01:32  weechat =!= | python: error in function "command_run_input"

I had pasted the word "Jägermeister" and hit enter. Also I can't remember which version of your script I had. I believe it was 0.2 (before your latest commit).

paradigm commented 13 years ago

Yeah, that needs to be fixed. I'll look into it.