Class HTree::Encoder
In: htree/encoder.rb
Parent: Object

Methods

Public Class methods

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.

Public Instance methods

[Validate]