title: Convert from string to us-ascii in c#
body: <p>I wanto to convert the string like "123" to string like "\u0031\u0032\u0033".
  How can i do this in .NET?
  For example: reverse convert:</p>
  
  <pre><code>Encoding enc = Encoding.GetEncoding("us-ascii",
                                            new EncoderExceptionFallback(),
                                            new DecoderExceptionFallback());
              byte[] by = enc.GetBytes(s);
              string ans = enc.GetString(by);
              return ans;
  </code></pre>