CharsetConverter#
Superclasses: Object
Implemented Interfaces: Converter, Initable
GCharsetConverter is an implementation of Converter based on
IConv.
Constructors#
- class CharsetConverter
- classmethod new(to_charset: str, from_charset: str) CharsetConverter#
Creates a new
CharsetConverter.Added in version 2.24.
- Parameters:
to_charset – destination charset
from_charset – source charset
Methods#
- class CharsetConverter
- get_num_fallbacks() int#
Gets the number of fallbacks that
converterhas applied so far.Added in version 2.24.
- get_use_fallback() bool#
Gets the
CharsetConverter:use-fallback property.Added in version 2.24.
- set_use_fallback(use_fallback: bool) None#
Sets the
CharsetConverter:use-fallback property.Added in version 2.24.
- Parameters:
use_fallback –
Trueto use fallbacks