Flowdock
method

guess2

Importance_1
v1_8_7_72 - Show latest stable - 0 notes - Class: NKF
guess2(p1) public

Returns guessed encoding of str as integer by nkf routine.

   case NKF.guess(input)
   when NKF::ASCII
     "ASCII"
   when NKF::JIS
     "ISO-2022-JP"
   when NKF::SJIS
     "Shift_JIS"
   when NKF::EUC
     "EUC-JP"
   when NKF::UTF8
     "UTF-8"
   when NKF::UTF16
     "UTF-16"
   when NKF::UNKNOWN
     "UNKNOWN"
   when NKF::BINARY
     "BINARY"
   end
Show source
Register or log in to add new notes.