title: Manipulating both unicode and ASCII character set in C#
body: <p>I have this mapping in my C# application</p>
  
  <p><code>
  string [,] unicode2Ascii = {
  { "&amp;#3001;", "\x86" }
  };
  </code></p>
  
  <p>&#3001 - is the unicode value for a tamil literal "&#3001;". This is the raw hex literal for the unicode value saved by MS Word as a byte sequence. I am trying to map these unicode value "strings" to a hex value under 255 (so as to accommodate non-unicode supported systems). </p>
  
  <p>I trying to use string.replace like this:</p>
  
  <pre><code>S = S.replace(unicode2Ascii[0,0], unicode2Ascii[0,1]);
  </code></pre>
  
  <p>However the resultant ouput has a ? instead of the actual hex 0x86 stored. Any pointer on how I could set the encoding for the second element of that array to something like windows-1252?</p>
  
  <p>Or is there a better way to do this conversion?</p>
  
  <p>thanks in advance</p>