Permalink
Browse files

treat encoded outgoing messages as binary

This backports f38d2ae
  • Loading branch information...
dominikh committed Dec 28, 2011
1 parent f792a2d commit c019fbc91c2b49bb3e9a5315f749e2c3702f071b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cinch.rb
View
@@ -53,7 +53,7 @@ def self.encode_outgoing(string, encoding)
rescue Encoding::UndefinedConversionError
end
else
- string.encode!(encoding, {:invalid => :replace, :undef => :replace})
+ string.encode!(encoding, {:invalid => :replace, :undef => :replace}).force_encoding("ASCII-8BIT")
end
return string

0 comments on commit c019fbc

Please sign in to comment.