{"issue":{"title":"Won't work with ISO-2022-JP","user":{"login":"hirataya","id":1040578,"url":"https://api.github.com/users/hirataya","avatar_url":"https://secure.gravatar.com/avatar/597b171a8ca6f101794118fb8b46fa48?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"597b171a8ca6f101794118fb8b46fa48"},"created_at":"2011-12-28T17:37:11Z","milestone":null,"state":"closed","updated_at":"2011-12-29T03:46:50Z","labels":[{"name":"bug","url":"https://api.github.com/repos/cinchrb/cinch/labels/bug","color":"ff0000"}],"id":2673115,"closed_at":"2011-12-29T03:46:50Z","html_url":"https://github.com/cinchrb/cinch/issues/56","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"When running Cinch with encoding = \"iso-2022-jp\", Ruby rises Encoding::CompatibilityError.  The cause is probably because ISO-2022-JP is not compatible with ASCII.  (ISO-2022-JP is commonly used by Japanese in IRCNet.)\r\n\r\n(Error message)\r\n/Users/yasu/devel/cinch/lib/cinch/message_queue.rb:68:in `process!': incompatible character encodings: ISO-2022-JP and UTF-8 (Encoding::CompatibilityError)\r\n\r\n(Quick fix)\r\nIt works, but I'm not sure whether if it is suitable fix.\r\nforce_encoding(\"binary\") is required for ASCII incompatible encoding to work.\r\nhttps://gist.github.com/1528729","number":56,"url":"https://api.github.com/repos/cinchrb/cinch/issues/56","comments":3,"assignee":null},"action":"closed"}