acrosa/kafka-rb — pull request #2 by digitalex (2011-10-13 12:13:13+00:00)
Title: Add force_encoding to avoid errors with messages containing non-ASCII characters.

Added force_encoding to avoid errors when sending messages containing non-ASCII characters. This would fix issue #1, albeit leaving the encoding decisions to the caller. An alternative would be to send the encoding as part of the message, and correctly decode it when parsing a message. I think it's fine to let the user handle encoding himself.