Gio.CharsetConverter¶
class — extends GObject.Object, Converter, Initable
GCharsetConverter is an implementation of Converter based on
GLib.IConv.
Constructors¶
new¶
Creates a new CharsetConverter.
Parameters:
to_charset— destination charsetfrom_charset— source charset
Methods¶
get_num_fallbacks¶
Gets the number of fallbacks that converter has applied so far.
get_use_fallback¶
Gets the CharsetConverter:use-fallback property.
set_use_fallback¶
Sets the CharsetConverter:use-fallback property.
Parameters:
use_fallback—Trueto use fallbacks
Properties¶
from_charset¶
The character encoding to convert from.
to_charset¶
The character encoding to convert to.
use_fallback¶
Use fallback (of form \<hexval>) for invalid bytes.