gio.charset_converter
Module for [CharsetConverter] class
Types 3
[gio.charset_converter.CharsetConverter] is an implementation of [gio.converter.Converter] based on [glib.types.void*].
Methods
CharsetConverter self()Returns `this`, for use in `with` statements.CharsetConverterGidBuilder builder()Get builder for [gio.charset_converter.CharsetConverter] Returns: New builder objectstring fromCharset() @propertyGet `fromCharset` property. Returns: The character encoding to convert from.string toCharset() @propertyGet `toCharset` property. Returns: The character encoding to convert to.bool useFallback() @propertyGet `useFallback` property. Returns: Use fallback (of form `\<hexval>`) for invalid bytes.void useFallback(bool propval) @propertySet `useFallback` property. Params: propval = Use fallback (of form `\<hexval>`) for invalid bytes.uint getNumFallbacks()Gets the number of fallbacks that converter has applied so far. Returns: the number of fallbacks that converter has appliedbool getUseFallback()Gets the #GCharsetConverter:use-fallback property. Returns: true if fallbacks are used by convertervoid setUseFallback(bool useFallback)Sets the #GCharsetConverter:use-fallback property.classCharsetConverterGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.converter.ConverterGidBuilderImpl!T, gio.initable.InitableGidBuilderImpl!T
Methods
T fromCharset(string propval)Set `fromCharset` property. Params: propval = The character encoding to convert from. Returns: Builder instance for fluent chainingT toCharset(string propval)Set `toCharset` property. Params: propval = The character encoding to convert to. Returns: Builder instance for fluent chainingT useFallback(bool propval)Set `useFallback` property. Params: propval = Use fallback (of form `\<hexval>`) for invalid bytes. Returns: Builder instance for fluent chainingFluent builder for [gio.charset_converter.CharsetConverter]
Methods