Synopsis
A whatwg compliant UTF8 encoding and decoding library
- Version
- 0.0.1
- Source
- jwerle/libutf8
- License
- MIT
API
Details
- utf8_decode ()
-
UTF8_EXTERN char * utf8_decode (const char * );
Returns a utf8 decoded string from a given utf8 encoded string.
Return value: Returns a `char *' or `NULL' in the case of an error.
Error: In the occurence of an error `errno' will be populated with an error code which can be interpreted with `utf8_perror(str)'
- utf8_encode ()
-
UTF8_EXTERN char * utf8_encode (const char * );
Returns a utf8 encoded string from a given utf8 decoded string.
Return value: Returns a `char *' or `NULL' in the case of an error.
Error: In the occurence of an error `errno' will be populated with an error code which can be interpreted with `utf8_perror(str)'