Class: Jabber::Connection::SSLSocketUTF8

Inherits:
OpenSSL::SSL::SSLSocket
  • Object
show all
Defined in:
lib/xmpp4r/connection.rb

Instance Method Summary collapse

Instance Method Details

#sysread(*args) ⇒ Object

#readline returns incorrect encodings for UTF8 strings because SSLSocket does not support encoding conversions This forces a correct encoding, and pervents REXML exceptions


44
45
46
# File 'lib/xmpp4r/connection.rb', line 44

def sysread *args
  super.force_encoding ::Encoding::UTF_8
end