Incorrect behaviour of size() and at() in string class
<p>I've got this code:</p>

<pre><code>string test("żaba");

cout &lt;&lt; "Word: " &lt;&lt; test &lt;&lt; endl;
cout &lt;&lt; "Length: " &lt;&lt; test.size() &lt;&lt; endl;
cout &lt;&lt; "Letter: " &lt;&lt; test.at(0) &lt;&lt; endl;
</code></pre>

<p>The output is strange:</p>

<pre><code>Word: żaba
Length: 5
Letter: �
</code></pre>

<p>As you can see, length should be 4 and letter: "ż".</p>

<p>How can I correct this code to work properly?</p>
