Gio.CharsetConverter¶
| Subclasses: | None |
|---|
Methods¶
| Inherited: | GObject.Object (37), Gio.Converter (2), Gio.Initable (2) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| 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 | The character encoding to convert from |
to-charset |
str |
r/w/co | The character encoding to convert to |
use-fallback |
bool |
r/w/c | Use fallback (of form \<hexval>) for invalid bytes |
Signals¶
| Inherited: | GObject.Object (1) |
|---|
Fields¶
| Inherited: | GObject.Object (1) |
|---|
Class Details¶
-
class
Gio.CharsetConverter(**kwargs)¶ Bases: GObject.Object,Gio.Converter,Gio.InitableAbstract: No Structure: Gio.CharsetConverterClassGio.CharsetConverteris an implementation ofGio.Converterbased on GIConv.-
classmethod
new(to_charset, from_charset)[source]¶ Parameters: Raises: Returns: a new
Gio.CharsetConverterorNoneon error.Return type: Creates a new
Gio.CharsetConverter.New in version 2.24.
-
get_num_fallbacks()[source]¶ Returns: the number of fallbacks that self has applied Return type: intGets the number of fallbacks that self has applied so far.
New in version 2.24.
-
get_use_fallback()[source]¶ Returns: Trueif fallbacks are used by selfReturn type: boolGets the
Gio.CharsetConverter:use-fallbackproperty.New in version 2.24.
-
set_use_fallback(use_fallback)[source]¶ Parameters: use_fallback ( bool) –Trueto use fallbacksSets the
Gio.CharsetConverter:use-fallbackproperty.New in version 2.24.
-
classmethod
Property Details¶
-
Gio.CharsetConverter.props.from_charset¶ Name: from-charsetType: strDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe character encoding to convert from