How to represent "1\0" + "2" as a single string in javascript?
<p>Given the code below:</p>

<pre><code>alert(encodeURIComponent("1\0" + "2")); // shows 1%002
alert(encodeURIComponent("1\02"));      // shows 1%02
</code></pre>

<p>Why is there a difference in the output?</p>
