* mu-str: add mu_str_utf8ify

This commit is contained in:
djcb
2012-01-12 00:19:35 +02:00
parent eef777a604
commit 15f7be5f1c
2 changed files with 31 additions and 0 deletions

View File

@ -220,6 +220,17 @@ char* mu_str_escape_c_literal (const gchar* str, gboolean in_quotes)
char* mu_str_asciify_in_place (char *buf);
/**
* turn string in buf into valid utf8. If this string is not valid
* utf8 already, the function massages the offending characters.
*
* @param buf a buffer to utf8ify
*
* @return a newly allocated utf8 string
*/
char* mu_str_utf8ify (const char *buf);
/**
* convert a string in a certain charset into utf8
*