title: How to fix UTF encoding for whitespaces?
body: <p>In my C# code, I am extracting text from a PDF document. When I do that, I get a string that's in UTF-8 or Unicode encoding (I'm not sure which). When I use <code>Encoding.UTF8.GetBytes(src);</code> to convert it into a byte array, I notice that the whitespace is actually two characters with byte values of 194 and 160.</p>
  
  <p>For example the string "CLE action" looks like</p>
  
  <pre><code>[67, 76, 69, 194 ,160, 65 ,99, 116, 105, 111, 110]
  </code></pre>
  
  <p>in a byte array, where the whitespace is 194 and 160... And because of this <code>src.IndexOf("CLE action");</code> is returning -1 when I need it to return 1. </p>
  
  <p>How can I fix the encoding of the string?</p>