Bugs item #1595184, was opened at 2006-11-12 13:36 Message generated for change (Comment added) made by ciran You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100235&aid=1595184&group_id=235
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: i18n Group: 2.0.0 beta 5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sergei (saproj) Assigned to: Mark Doliner (thekingant) >Summary: Oscar offline messages - cannot send/receive non-latin chars Initial Comment: There is a problem with oscar offline messages in some national encodings. I'd like to suggest a way to fix that. Offline messages in Oscar don't contain an information about encoding, and the encoding from the "Advanced" page in the oscar account options is used, which is "ISO-8859-1" by default. Due to that offline messages in some languages are not converted into UTF-8 correctly. For example "CP1251" should be used for Russian messages. What I suggest is to get the default value for that encoding from user locale: Method #0 (Windows-only): char encoding[10]="CP"; if(GetLocaleInfoA(LOCALE_USER_DEFAULT,LOCALE_IDEFAULTANSICODEPAGE,encoding+2,sizeof encoding-2)){ we have a proper encoding here! } Method #1 (universal): Use setlocale(LC_CTYPE,0) (provided that the right locale has been set before) and then parse what is there after the period in the returned string. Maybe init_plugin in oscar.c is a proper place for that... ---------------------------------------------------------------------- >Comment By: Megan Schneider (ciran) Date: 2007-02-16 13:14 Message: Logged In: YES user_id=801517 Originator: NO Has duplicate 1626494 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100235&aid=1595184&group_id=235 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gaim-bugs mailing list Gaim-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gaim-bugs