comparison libpurple/protocols/oscar/oscar.c @ 16834:f0b4efc4a83a

If we're sent text/plain by an AIM client and it specifies a charset, we can now use that charset via oscar_encoding_extract() instead of ignoring it and therefore assuming UTF-8
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 03 May 2007 17:56:31 +0000
parents 04fecd1ee64d
children 9f9c486a8aca
comparison
equal deleted inserted replaced
16833:52c776782b95 16834:f0b4efc4a83a
278 278
279 g_return_val_if_fail(encoding != NULL, NULL); 279 g_return_val_if_fail(encoding != NULL, NULL);
280 280
281 /* Make sure encoding begins with charset= */ 281 /* Make sure encoding begins with charset= */
282 if (strncmp(encoding, "text/aolrtf; charset=", 21) && 282 if (strncmp(encoding, "text/aolrtf; charset=", 21) &&
283 strncmp(encoding, "text/x-aolrtf; charset=", 23)) 283 strncmp(encoding, "text/x-aolrtf; charset=", 23) &&
284 strncmp(encoding, "text/plain; charset=", 20))
284 { 285 {
285 return NULL; 286 return NULL;
286 } 287 }
287 288
288 begin = strchr(encoding, '"'); 289 begin = strchr(encoding, '"');