Module Kconv
In: ext/nkf/lib/kconv.rb

Kanji Converter for Ruby.

Methods

guess   iseuc   isjis   issjis   isutf8   kconv   toeuc   tojis   tolocale   tosjis   toutf16   toutf32   toutf8  

Constants

AUTO = NKF::AUTO   Auto-Detect
JIS = NKF::JIS   ISO-2022-JP
EUC = NKF::EUC   EUC-JP
SJIS = NKF::SJIS   Shift_JIS
BINARY = NKF::BINARY   BINARY
NOCONV = NKF::NOCONV   NOCONV
ASCII = NKF::ASCII   ASCII
UTF8 = NKF::UTF8   UTF-8
UTF16 = NKF::UTF16   UTF-16
UTF32 = NKF::UTF32   UTF-32
UNKNOWN = NKF::UNKNOWN   UNKNOWN

Public Instance methods

Returns whether input encoding is EUC-JP or not.

Note don‘t expect this return value is MatchData.

Returns whether input encoding is ISO-2022-JP or not.

Returns whether input encoding is Shift_JIS or not.

Returns whether input encoding is UTF-8 or not.

Convert str to out_code. out_code and in_code are given as constants of Kconv.

Convert str to EUC-JP

Convert str to ISO-2022-JP

Convert self to locale encoding

Convert str to Shift_JIS

Convert str to UTF-16

Convert str to UTF-32

Convert str to UTF-8

[Validate]

ruby-doc.org is a community service provided by Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.