Class: Gio::CharsetConverter

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(to_charset, from_charset) ⇒ Gio::CharsetConverter

Creates a new GCharset::Converter.

Parameters:

  • to_charset (String)

    destination charset

  • from_charset (String)

    source charset

Instance Method Details

#from_charsetString

The character encoding to convert from.

Returns:

  • (String)

    from-charset

#from_charset=(from_charset) ⇒ String

The character encoding to convert from.

Parameters:

  • from_charset (String)

Returns:

  • (String)

    from-charset

  • (String)

    from-charset

#num_fallbacksInteger

Gets the number of fallbacks that converter has applied so far.

Returns:

  • (Integer)

    the number of fallbacks that converter has applied

#to_charsetString

The character encoding to convert to.

Returns:

  • (String)

    to-charset

#to_charset=(to_charset) ⇒ String

The character encoding to convert to.

Parameters:

  • to_charset (String)

Returns:

  • (String)

    to-charset

  • (String)

    to-charset

#use_fallbackBoolean

Gets the GCharset::Converter:use-fallback property.

Returns:

  • (Boolean)

    true if fallbacks are used by converter

#use_fallback=(use_fallback) ⇒ Boolean

Use fallback (of form \<hexval>) for invalid bytes.

Parameters:

  • use_fallback (Boolean)

Returns:

  • (Boolean)

    use-fallback

  • (Boolean)

    use-fallback

#use_fallback?Boolean

Use fallback (of form \<hexval>) for invalid bytes.

Returns:

  • (Boolean)

    use-fallback