Top |
Properties
gchar * | from-charset | Read / Write / Construct Only |
gchar * | to-charset | Read / Write / Construct Only |
gboolean | use-fallback | Read / Write / Construct |
Functions
g_charset_converter_new ()
GCharsetConverter * g_charset_converter_new (const gchar *to_charset
,const gchar *from_charset
,GError **error
);
Creates a new GCharsetConverter.
Since: 2.24
g_charset_converter_set_use_fallback ()
void g_charset_converter_set_use_fallback (GCharsetConverter *converter
,gboolean use_fallback
);
Sets the “use-fallback” property.
Since: 2.24
g_charset_converter_get_use_fallback ()
gboolean
g_charset_converter_get_use_fallback (GCharsetConverter *converter
);
Gets the “use-fallback” property.
Since: 2.24
g_charset_converter_get_num_fallbacks ()
guint
g_charset_converter_get_num_fallbacks (GCharsetConverter *converter
);
Gets the number of fallbacks that converter
has applied so far.
Since: 2.24
Property Details
The “from-charset”
property
“from-charset” gchar *
The character encoding to convert from.
Flags: Read / Write / Construct Only
Default value: NULL
The “to-charset”
property
“to-charset” gchar *
The character encoding to convert to.
Flags: Read / Write / Construct Only
Default value: NULL
The “use-fallback”
property
“use-fallback” gboolean
Use fallback (of form \<hexval>) for invalid bytes.
Flags: Read / Write / Construct
Default value: FALSE