Proper way of encoding a java script string
<p>I have used escape function of java script to encode a java script string. But the result appears to be weird one which consists of the following characters:</p>

<pre><code>%3CBitte%20w%E4hlen%3E
</code></pre>

<p>…for the string:</p>

<pre><code>Bitte wählen
</code></pre>

<p>…which is a German sentence. I need the output as <code>Bitte wählen</code>.</p>

<p>The following code may help you understand clearly</p>

<pre><code>var temp = escape(String(&lt;Bitte wählen&gt;));
</code></pre>
