title: C# Imap search command with special characters like á,é
body: <p>I'm working on an imap client search function. </p>
  
  <p>I use this command: <strong>UID SEARCH FROM <em>PÉTER</em></strong></p>
  
  <p>When I run this command i get the following error:
  <em>Error in IMAP command UID SEARCH: 8bit data in atom</em> </p>
  
  <p>I get this error when my pattern string(for example PÉTER) contains accentuated character.</p>
  
  <p>What is the solution? What sholud I do? </p>
  
  <p>Edit:
  I try with UTF-8 encoded string (<strong>UID SEARCH FROM P&#201;TER</strong>), it runs without error, but it doesn't give back any result. 
  I check the test email account, and there are many mails with this sender.</p>