| Author |  | 
      
        | tliebscher Newbie
 
  
  
 Joined: 27 December 2007
 Location: Germany
 Online Status: Offline
 Posts: 5
 | 
          Hi!
           | Posted: 27 December 2007 at 6:50am | IP Logged |   |  
           | 
 |  
 I have a problem with an attachment in ANSI UNIX encoding. When I download and save it to my harddisk, all umlaute (ä, ö, ü) get replaced by '?'.
 
 I use the following code:
 
 MailBee.ImapMail.Imap emailClient = emailClient = new MailBee.ImapMail.Imap();
 emailClient.Connect(emailConfi guration.Server);
 emailClient.Login(emailConfigu ration.User, emailConfiguration.Password);
 
 if (emailClient.SelectFolder(emailConfiguration.Mailbox))
 {
 if (emailClient.MessageCount > 0)
 {
 message  = emailClient.DownloadEntireMessage(1, false);
 MailBee.Mime.Attachment  attachment = retVal = currentMail.Attachments[0];
 attachment.SaveToFolder(archiv eDir.FullName, false);
 }
 }
 
 While a line in my original file looks like this:
 
 01000472;01;   ;Bäckerei;Lübeck;Knölcke
 
 It looks like this in the downloaded file:
 
 01000472;01;   ;B?ckerei;;L?beck;Kn?lcke       ;
 
 When I open the original file in Textpad and save it in ANSI PC format, everything works fine.
 
 Any clue what the problem could be?
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | tliebscher Newbie
 
  
  
 Joined: 27 December 2007
 Location: Germany
 Online Status: Offline
 Posts: 5
 | 
          There are 2 copy & paste errors in the code listed above (it's spread over several classes in my application).
           | Posted: 27 December 2007 at 6:52am | IP Logged |   |  
           | 
 |  
 Of course it must be:
 
 MailBee.ImapMail.Imap emailClient = new MailBee.ImapMail.Imap();
 
 and
 
 MailBee.Mime.Attachment attachment = currentMail.Attachments[0];
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Could you please send us the problem message as .EML file so that we would be able to check it?
           | Posted: 27 December 2007 at 8:07am | IP Logged |   |  
           | 
 |  
 You can save it as .EML in most email clients (for instance, Outlook Express supports this).
 
 Please use our Request Support Form to submit the email message in question.
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | tliebscher Newbie
 
  
  
 Joined: 27 December 2007
 Location: Germany
 Online Status: Offline
 Posts: 5
 | 
          Thanks for this quick reply! Shouldn't you guys actually be home with your family celebrating xmas? ;)
           | Posted: 28 December 2007 at 1:30am | IP Logged |   |  
           | 
 |  
 I downloaded the latest version of mailbee and now everything works fine.
 
 Thanks for your help. This is really amazing support.
 
 BR
 Torsten
 | 
       
        | Back to Top |     | 
       
       
        |  |