Constructor

GioCharsetConverternew

Declaration

GCharsetConverter*
g_charset_converter_new (
  const gchar* to_charset,
  const gchar* from_charset,
  GError** error
)

Description

Creates a new GCharsetConverter.

Available since:2.24

Parameters

to_charset const gchar*
 

Destination charset.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
from_charset const gchar*
 

Source charset.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GCharsetConverter
 

A new GCharsetConverter or NULL on error.

 The caller of the function takes ownership of the data, and is responsible for freeing it.