Class: String
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/nkf/lib/kconv.rb |
Instance Method Summary
-
#iseuc ⇒ Boolean
Returns whether
self
's encoding is EUC-JP or not. -
#isjis ⇒ Boolean
Returns whether
self
's encoding is ISO-2022-JP or not. -
#issjis ⇒ Boolean
Returns whether
self
's encoding is Shift_JIS or not. -
#isutf8 ⇒ Boolean
Returns whether
self
's encoding is UTF-8 or not. -
#kconv(to_enc, from_enc)
Convert
self
toto_enc
. -
#toeuc ⇒ String
Convert
self
to EUC-JP. -
#tojis ⇒ String
Convert
self
to ISO-2022-JP. -
#tolocale ⇒ String
Convert
self
to locale encoding. -
#tosjis ⇒ String
Convert
self
to Shift_JIS. -
#toutf16 ⇒ String
Convert
self
to UTF-16. -
#toutf32 ⇒ String
Convert
self
to UTF-32. -
#toutf8 ⇒ String
Convert
self
to UTF-8.
Instance Method Details
#iseuc ⇒ Boolean
Returns whether self
's encoding is EUC-JP or not.
#isjis ⇒ Boolean
Returns whether self
's encoding is ISO-2022-JP or not.
#issjis ⇒ Boolean
Returns whether self
's encoding is Shift_JIS or not.
#isutf8 ⇒ Boolean
Returns whether self
's encoding is UTF-8 or not.
#kconv(to_enc, from_enc)
Convert self
to to_enc
. to_enc
and from_enc
are given as constants of ::Kconv or Encoding objects.
#toeuc ⇒ String
Convert self
to EUC-JP
#tojis ⇒ String
Convert self
to ISO-2022-JP
#tolocale ⇒ String
Convert self
to locale encoding
#tosjis ⇒ String
Convert self
to Shift_JIS
#toutf16 ⇒ String
Convert self
to UTF-16
#toutf32 ⇒ String
Convert self
to UTF-32
#toutf8 ⇒ String
Convert self
to UTF-8