diff libpurple/protocols/oscar/oscar.c @ 27803:8dfe3a985fc1

replaced deprecated UCS-2BE with UTF-16BE
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 19 Mar 2008 19:16:07 +0000
parents 85d5b6c06a6c
children 80d3f4ff1cae
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Mon Mar 17 07:20:59 2008 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Wed Mar 19 19:16:07 2008 +0000
@@ -311,9 +311,9 @@
 			goto done;
 		}
 		// not UTF-8
-		purple_debug_info("yaz oscar", "Empty encoding, assuming UCS-2BE\n");
+		purple_debug_info("yaz oscar", "Empty encoding, assuming UTF-16BE\n");
 		sanitize_ucs((gchar *)text, textlen);
-		utf8 = g_convert(text, textlen, "UTF-8", "UCS-2BE", NULL, NULL, NULL);
+		utf8 = g_convert(text, textlen, "UTF-8", "UTF-16BE", NULL, NULL, NULL);
 		if(utf8){
 			if(!g_utf8_validate(utf8, strlen(utf8), NULL)){
 				purple_debug_info("yaz oscar", "Invalid conversion\n");