method

encoding_updated

v2_2_9 - Show latest stable - Class: REXML::Source
encoding_updated()
private

No documentation available.

# File lib/rexml/source.rb, line 144
    def encoding_updated
      if @encoding != 'UTF-8'
        @buffer = decode(@buffer)
        @to_utf = true
      else
        @to_utf = false
        @buffer.force_encoding ::Encoding::UTF_8
      end
    end