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.Initable- Abstract: - No - Structure: - Gio.CharsetConverterClass- Gio.CharsetConverteris an implementation of- Gio.Converterbased on GIConv.- 
classmethod new(to_charset, from_charset)[source]¶
- Parameters: - Raises: - Returns: - a new - Gio.CharsetConverteror- Noneon 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: - int- Gets 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 self- Return type: - bool- Gets the - Gio.CharsetConverter- :use-fallbackproperty.- New in version 2.24. 
 - 
set_use_fallback(use_fallback)[source]¶
- Parameters: - use_fallback ( - bool) –- Trueto use fallbacks- Sets the - Gio.CharsetConverter- :use-fallbackproperty.- New in version 2.24. 
 
- 
classmethod 
Property Details¶
- 
Gio.CharsetConverter.props.from_charset¶
- Name: - from-charset- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE,- CONSTRUCT_ONLY- The character encoding to convert from