From: Maria Almar Date: 2008-03-07T01:54:58+09:00 Subject: ?ISO-8859-1?Q? from IMAP server Hi all, I have an encoding problem when a want to examine my mails from an IMAP server. Strings with "special characters" are returned with the "?ISO-8859-1?Q?" prefix and special characters are messed up ("辿" becomes "=E9") Do I have to call IMAP with special parameters ? Or can I convert this string afterward ? # Login to the Imap server imap = Net::IMAP.new('imap.gmail.com', 993, true) imap.login(name, password) # Examine the INBOX box imap.examine("INBOX") # Fetch a single message msg = imap.uid_fetch([123], ['ENVELOPE'])[0] puts msg.attr["ENVELOPE"].subject => =?ISO-8859-1?Q?Invitation_to_join_XXX_from_Nicolas_F=E9tiou?= I'm on Leopard, and tried with "irb" and "irb --noreadline" Regards Maria