Top | ![]() |
![]() |
![]() |
![]() |
Dealing with user supplied input means handling different codesets and this API helps with that.
gchar * talkatu_codeset_coerce_utf8 (const guint8 *data
,gsize length
,gsize *text_length
,GError **error
);
Attempts to coerce the raw data
into UTF-8.
Currently it handles UTF-8, UTF-16 (host encoding), UTF-16 littled endian, and UTF-16 big endian.