javascript string internal representation
<p>As far as I know java uses UTF-16 to represent chars and string internally,<br>
so if we load a text file from a file it is automatically decoded to its   original encoding to utf-16.  </p>

<p>Now the same can be said also for javascript<br>
it also uses utf-16 as the internal string representation.<br>
Suppose we load a string <strong>x</strong> encoded in utf-8 using ajax,
a converion takes place in order for javascript to be able to represent internally that string in UTF-16.</p>

<p>Please tell me if any of what I stated is correct or not,
because the real question is yet to come...</p>

<p>Now suppose the browser is rendering a page using utf-8 encoding,<br>
and using javascript we want the browser to render also the ajax string <strong>x</strong> (as you normally do)<br>
Would, in this case, a further conversion be needed from utf-16 to utf-8 ?</p>

<p>Thanks in advance.</p>