Gio.CharsetConverter - Classes - Gio 2.0 (original) (raw)
g GObject.GInterface GObject.GInterface Gio.Converter Gio.Converter GObject.GInterface->Gio.Converter Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object Gio.CharsetConverter Gio.CharsetConverter GObject.Object->Gio.CharsetConverter Gio.Converter->Gio.CharsetConverter Gio.Initable->Gio.CharsetConverter
Subclasses:
None
Methods¶
Inherited:
GObject.Object (37), Gio.Converter (3), Gio.Initable (2)
Structs:
class | new (to_charset, from_charset) |
---|---|
get_num_fallbacks () | |
get_use_fallback () | |
set_use_fallback (use_fallback) |
Virtual Methods¶
Inherited:
GObject.Object (7), Gio.Converter (2), Gio.Initable (1)
Properties¶
Name | Type | Flags | Short Description |
---|---|---|---|
from-charset | str | r/w/co | |
to-charset | str | r/w/co | |
use-fallback | bool | r/w/c |
Signals¶
Inherited:
Fields¶
Inherited:
Class Details¶
class Gio.CharsetConverter(**kwargs)¶
Bases:
GObject.Object, Gio.Converter, Gio.Initable
Abstract:
No
Structure:
GCharsetConverter
is an implementation of [iface`Gio`.Converter] based on [struct`GLib`.IConv].
classmethod new(to_charset, from_charset)[source]¶
Parameters:
Raises:
Returns:
a new Gio.CharsetConverter or None on error.
Return type:
Creates a new Gio.CharsetConverter.
New in version 2.24.
Returns:
the number of fallbacks that self has applied
Return type:
Gets the number of fallbacks that self has applied so far.
New in version 2.24.
Returns:
True if fallbacks are used by self
Return type:
Gets the Gio.CharsetConverter :use-fallback property.
New in version 2.24.
set_use_fallback(use_fallback)[source]¶
Parameters:
use_fallback (bool) – True to use fallbacks
Sets the Gio.CharsetConverter :use-fallback property.
New in version 2.24.
Property Details¶
Gio.CharsetConverter.props.from_charset¶
Name:
from-charset
Type:
Default Value:
Flags:
READABLE, WRITABLE, CONSTRUCT_ONLY
The character encoding to convert from.
New in version 2.24.
Gio.CharsetConverter.props.to_charset¶
Name:
to-charset
Type:
Default Value:
Flags:
READABLE, WRITABLE, CONSTRUCT_ONLY
The character encoding to convert to.
New in version 2.24.
Gio.CharsetConverter.props.use_fallback¶
Name:
use-fallback
Type:
Default Value:
Flags:
Use fallback (of form \<hexval>
) for invalid bytes.
New in version 2.24.