method

encoding_updated

Importance_0
v2_1_10 - Show latest stable - 0 notes - Class: REXML::IOSource
encoding_updated() private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rexml/source.rb, line 283
    def encoding_updated
      case @encoding
      when "UTF-16BE", "UTF-16LE"
        @source.binmode
        @source.set_encoding(@encoding)
      end
      @line_break = encode(">")
      @pending_buffer, @buffer = @buffer, ""
      @pending_buffer.force_encoding(@encoding)
      super
    end
Register or log in to add new notes.