Method: XMPP4EM::BaseConnection#encode2utf8

Defined in:
lib/xmpp4em/base_connection.rb

#encode2utf8(text) ⇒ Object



32
33
34
# File 'lib/xmpp4em/base_connection.rb', line 32

def encode2utf8(text)
  text.respond_to?(:force_encoding) ? text.force_encoding("utf-8") : text
end