Working with unicode strings as std::vector<unsigned short>
<p>A library stores unicode strings as.</p>

<pre><code>std::vector&lt;unsigned short&gt; ustring;
</code></pre>

<p>How do I do these conversions in a portable way?</p>

<pre><code>convert ustring to std::wstring;
convert ustring to std::string;
convert ustring to std::vector&lt;unsigned char&gt;;
convert std::vector&lt;unsigned char&gt; to ustring;
</code></pre>

<p><br>
EDIT<br>
The strings are probably UTF-16 not UTF-8</p>
