[gaim-migrate @ 11601]

Wed, 15 Dec 2004 01:56:10 +0000

author
Sean Egan <seanegan@pidgin.im>
date
Wed, 15 Dec 2004 01:56:10 +0000
changeset 10376
55a66fe5f524
parent 10375
54a5d7c57286
child 10377
1f2a0d55abb3

[gaim-migrate @ 11601]
Of course, though, I meant this.

src/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- a/src/protocols/oscar/oscar.c	Wed Dec 15 01:53:33 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Wed Dec 15 01:56:10 2004 +0000
@@ -378,13 +378,12 @@
 	if ((encoding == NULL) || encoding[0] == '\0') {
 		gaim_debug_info("oscar", "Empty encoding, assuming UTF-8\n");
 
-	} else if (!strcmp(encoding, "iso-8859-1")
-                   || !strcmp(encoding, "ISO-8859-1-Windows-3.1-Latin-1")) {
+	} else if (!strcmp(encoding, "iso-8859-1")) {
+		utf8 = g_convert(text, textlen, "UTF-8", "iso-8859-1", NULL, NULL, NULL);
+	} else if (!strcmp(encoding, "ISO-8859-1-Windows-3.1-Latin-1")) {
 		utf8 = g_convert(text, textlen, "UTF-8", "Windows-1252", NULL, NULL, NULL);
-
 	} else if (!strcmp(encoding, "unicode-2-0")) {
 		utf8 = g_convert(text, textlen, "UTF-8", "UCS-2BE", NULL, NULL, NULL);
-
 	} else if (strcmp(encoding, "us-ascii") && strcmp(encoding, "utf-8")) {
 		gaim_debug_warning("oscar", "Unrecognized character encoding \"%s\", "
 						   "attempting to convert to UTF-8 anyway\n", encoding);

mercurial