src/protocols/oscar/oscar.c

changeset 10098
364dcec11abd
parent 10097
cdf1f787073f
child 10111
61dd88113afc
--- a/src/protocols/oscar/oscar.c	Thu Oct 14 03:44:42 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Oct 14 03:59:00 2004 +0000
@@ -498,11 +498,10 @@
 	const gchar *charsetstr;
 	gsize msglen;
 
-	*charset = oscar_charset_check(from);
-
 	/* Attempt to send as ASCII */
-	if (*charset == AIM_CHARSET_ASCII) {
+	if (oscar_charset_check(from) == AIM_CHARSET_ASCII) {
 		*msg = g_convert(from, strlen(from), "ASCII", "UTF-8", NULL, &msglen, NULL);
+		*charset = AIM_CHARSET_ASCII;
 		*charsubset = 0x0000;
 		*msglen_int = msglen;
 		return;

mercurial