title: Why is the length of this string longer than the number of characters in it?
body: <p>This code:</p>
  
  <pre><code>string a = "abc";
  string b = "AC";
  Console.WriteLine("Length a = {0}", a.Length);
  Console.WriteLine("Length b = {0}", b.Length);
  </code></pre>
  
  <p>outputs:</p>
  
  <pre><code>Length a = 3
  Length b = 4
  </code></pre>
  
  <p>Why? The only thing I could imagine is that the Chinese character is 2 bytes long and that the <code>.Length</code> method returns the byte count.</p>