33件ヒット
[1-33件を表示]
(0.039秒)
検索結果
先頭3件
-
String
# kconv(out _ code , in _ code = Kconv :: AUTO) -> String (47605.0) -
self のエンコーディングを out_code に変換した文字列を 返します。 out_code in_code は Kconv の定数で指定します。
...self のエンコーディングを out_code に変換した文字列を
返します。
out_code in_code は Kconv の定数で指定します。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換します。
これらを変換......したくない場合は、 NKF.#nkf を使ってください。
@param out_code 変換後のエンコーディングを Kconv の定数で指定します。
@param in_code 変換する文字列のエンコーディングを Kconv の定数で指定します。
@see Kconv.#kconv... -
kconv (38162.0)
-
日本語文字コードの変換を手軽に行うためのライブラリです。
...コードの変換を手軽に行うためのライブラリです。
kconv を require すると String クラスに変換用のメソッドが定義されます。
Kconv にも同等のメソッドが定義されます。 Kconv には
エンコーディングを表す定数も定義されてい......uire 'kconv'
newstring = Kconv.kconv(string, Kconv::JIS, Kconv::AUTO)
newstring = Kconv.tojis(string)
newstring = Kconv.toeuc(string)
newstring = Kconv.tosjis(string)
guessed_code = Kconv.guess(string)
//}
または
//emlist[][ruby]{
require 'kconv'
newstring = string.kconv(Kconv::JIS, Kconv::AUTO......)
newstring = string.tojis
newstring = string.toeuc
newstring = string.tosjis
//}... -
Kconv
. # kconv(str , out _ code , in _ code = Kconv :: AUTO) -> String (35577.0) -
文字列 str のエンコーディングを out_code に変換したものを 返します。in_code も指定されていたら str のエンコーディングが in_code だとして動作します。
...文字列 str のエンコーディングを out_code に変換したものを
返します。in_code も指定されていたら str のエンコーディングが
in_code だとして動作します。
このメソッドはMIME エンコードされた文字列を展開し、
いわゆる半角......カナを全角に変換します。
これらを変換したくない場合は、 NKF.#nkf を使ってください。
@param str 変換元の文字列
@param out_code 変換後のエンコーディング
@param in_code strのエンコーディング
@see String#kconv...