Module

REXML::Encoding

Inheritance

Constants

Name   Description
EUCTOU8 = '-Ewm0'
SJISTOU8 = '-Swm0x'
U8TOEUC = '-Wem0'
U8TOSJIS = '-Wsm0x'
UNILE = 'UNILE'
UTF_16 = 'UTF-16'
UTF_8 = 'UTF-8' Native, default format is UTF-8, so it is declared here rather than in an encodings/ definition.

Attributes

Name Visibility R/W Description
encoding public R ID —> Encoding name

Aliases

Method Alias Description
from_iso_8859_15 → decode
to_iso_8859_15 → encode

Methods

Class

Visibility Signature
public apply (obj, enc)
public encoding_method (enc)
public register (enc, &block)

Instance

Visibility Signature
public check_encoding (str)
public decode_ascii (str)
public decode_cp1252 (str)
public decode_eucjp (str)
public decode_eucjp (str)
public decode_iconv (str)
public decode_sjis (content)
public decode_sjis (str)
public decode_unile (str)
public decode_utf16 (str)
public decode_utf8 (str)
public encode_ascii (content)
public encode_cp1252 (content)
public encode_eucjp (content)
public encode_eucjp (content)
public encode_iconv (content)
public encode_sjis (str)
public encode_sjis (content)
public encode_unile (content)
public encode_utf16 (content)
public encode_utf8 (content)
public encoding= ( enc )
public from_iso_8859_15 (str)
public to_iso_8859_15 (content)

Class Method Detail

apply(obj, enc)

encoding_method(enc)

register(enc, &block)

Instance Method Detail

check_encoding(str)

decode_ascii(str)

Convert to UTF-8

decode_cp1252(str)

Convert to UTF-8

decode_eucjp(str)

decode_eucjp(str)

decode_iconv(str)

decode_sjis(content)

decode_sjis(str)

decode_unile(str)

decode_utf16(str)

decode_utf8(str)

encode_ascii(content)

Convert from UTF-8

encode_cp1252(content)

Convert from UTF-8

encode_eucjp(content)

encode_eucjp(content)

encode_iconv(content)

encode_sjis(str)

encode_sjis(content)

encode_unile(content)

encode_utf16(content)

encode_utf8(content)

encoding=( enc )

from_iso_8859_15(str)

Convert to UTF-8

to_iso_8859_15(content)

Convert from UTF-8