unicode to utf-8 in JavaScript
<p>i have output from a server like</p>

<pre><code>["alex", "\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"]
</code></pre>

<p>i want to convert it like 
    ["alex", "to its right language"]
using js or jquery</p>

<p>i tried  </p>

<pre><code>function encode_utf8( s )
{
   return unescape( encodeURIComponent( s ) )
}
</code></pre>

<p>but not working correctly</p>

<p>any help?<br>
thanks in advance</p>
