title: How to replace extended ASCII characters in C#?
body: <p>I am trying to replace non-printable characters ie extended ASCII characters from a HUGE string. </p>
  
  <pre><code>foreach (string line in File.ReadLines(txtfileName.Text))
              {
                  MessageBox.Show( Regex.Replace(line,
                @"\p{Cc}",
                a =&gt; string.Format("[{0:X2}]", " ")
              )); ;
  
              }
  </code></pre>
  
  <p>this doesnt seem to be working.</p>
  
  <p>EX:
  AAÂAA should be converted to AA AA</p>