diff src/util.h @ 10258:357d4fa1bfbe

[gaim-migrate @ 11400] This is the IRC fallback encoding patch and gaim_utf8_salvage function that just hit oldstatus. If CVS didn't suck, I wouldn't have to generate two commits for this. :-P committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Wed, 24 Nov 2004 06:39:47 +0000
parents 7ff9b8b22e7d
children 8d42237564f6
line wrap: on
line diff
--- a/src/util.h	Wed Nov 24 02:16:36 2004 +0000
+++ b/src/util.h	Wed Nov 24 06:39:47 2004 +0000
@@ -693,6 +693,17 @@
 gchar *gaim_utf8_try_convert(const char *str);
 
 /**
+ * Salvages the valid UTF-8 characters from a string, replacing any
+ * invalid characters with a filler character (currently hardcoded to
+ * '?').
+ *
+ * @param str The source string.
+ *
+ * @return A valid UTF-8 string.
+ */
+gchar *gaim_utf8_salvage(const char *str);
+
+/**
  * Compares two UTF-8 strings.
  *
  * @param a The first string.