mmb/weechat-otr — pull request #3 by koolfy (2012-08-29 02:42:23+00:00)
Title: UTF-8 encoding/decoding fails with unrepresentable bytes

as shown here : http://paste.geeknode.org/21d1c2c5

binary values of 0xe9 and similar produce errors as they are latin1 chars, and their code is unrepresentable in utf-8..

This should fix it everywhere and replace those values with a safe '?'.

Let me know if I broke something else somewhere, I did this in a hurry.