# HG changeset patch # User Evan Schoenberg # Date 1178214991 0 # Node ID f0b4efc4a83abb57f2cdd422b1f3ba9119faffbe # Parent 52c776782b95a947ad090d6f2d4fa2ba26f4c24f 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 diff -r 52c776782b95 -r f0b4efc4a83a libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Thu May 03 17:50:36 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Thu May 03 17:56:31 2007 +0000 @@ -280,7 +280,8 @@ /* Make sure encoding begins with charset= */ if (strncmp(encoding, "text/aolrtf; charset=", 21) && - strncmp(encoding, "text/x-aolrtf; charset=", 23)) + strncmp(encoding, "text/x-aolrtf; charset=", 23) && + strncmp(encoding, "text/plain; charset=", 20)) { return NULL; }