Gsf.OutputIconv¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The string to use for invalid characters |
||
r/w/co |
The character set to convert from |
||
r/w/co |
The character set to convert to |
||
r/w/co |
Where the converted data is written |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gsf.OutputIconv(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(sink, dst, src)¶
- Parameters:
sink (
Gsf.Output
) – The underlying data source.dst (
str
) – The target character set.src (
str
) – The source character set.
- Returns:
a new
Gsf.Output
object orNone
.- Return type:
Adds a reference to sink.
Property Details¶
- Gsf.OutputIconv.props.fallback¶
-
Either
None
or a UTF-8 string (representable in the target encoding) to convert and output in place of characters that cannot be represented in the target encoding.None
means use \u1234 or \U12345678 format.
- Gsf.OutputIconv.props.input_charset¶
- Name:
input-charset
- Type:
- Default Value:
'UTF-8'
- Flags:
The character set to convert from
- Gsf.OutputIconv.props.output_charset¶
- Name:
output-charset
- Type:
- Default Value:
'UTF-8'
- Flags:
The character set to convert to
- Gsf.OutputIconv.props.sink¶
- Name:
sink
- Type:
- Default Value:
- Flags:
Where the converted data is written