htree/encoder.rb
# HTree::Encoder.internal_charset returns the MIME charset corresponding to $KCODE.
#
# - 'ISO-8859-1' when $KCODE=='NONE'
# - 'UTF-8' when $KCODE=='UTF8'
# - 'EUC-JP' when $KCODE=='EUC'
# - 'Shift_JIS' when $KCODE=='SJIS'
#
# This mapping ignores EUC-KR and various single byte charset other than ISO-8859-1 at least.
# This should be fixed when Ruby is m17nized.
:Encoder.internal_charset returns the MIME charset corresponding to $KCODE.

This mapping ignores EUC-KR and various single byte charset other than ISO-8859-1 at least.
This should be fixed when Ruby is m17nized.
: Encoder . internal_charset returns the MIME charset corresponding to $KCODE . This mapping ignores EUC - KR and various single byte charset other than ISO - 8859 - 1 at least . This should be fixed when Ruby is m17nized .
def minimal_charset
      @subcharset_list.each {|subcharset|
        if @subcharset_ic.include? subcharset
          return subcharset
        end
      }
      @output_encoding
    end
def minimal_charset @subcharset_list . each { | subcharset | if @subcharset_ic . include? subcharset return subcharset end } @output_encoding end
HTree::Encoder.internal_charset returns the MIME charset corresponding to $KCODE.
HTree :: Encoder . internal_charset returns the MIME charset corresponding to $KCODE .