Javascript: Invalid Unicode escape sequence while storing accessing unicode
<p>I am setting <code>Fontawesome</code> Icon codes in <code>SELECT</code> box and accessing on <code>change</code> event. On accessing I am getting error:</p>

<pre><code>Invalid Unicode escape sequence
</code></pre>

<p>Code given below:</p>

<p><strong>HTML</strong></p>

<pre><code>&lt;select name="faicons" id="faicons" class="form-control selectpicker"&gt;
    &lt;option value="0"&gt;Select&lt;/option&gt;
    &lt;option value="uF26E" class="fa fa-500px"&gt; 500px&lt;/option&gt;
    &lt;option value="uF26E" class="fa fa-linkedin"&gt; LinkedIn&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p><strong>Javascript</strong></p>

<pre><code>function renderIcon(code) {
    var context = null;
    code = "F26E"
    var icon_code = "\u"+code;
    context = main_canvas.getContext('2d');
    context.font='32px FontAwesome';
    context.fillText(icon_code,20,75);
    context.fillText("My TEXT!", 140, 90);
}
</code></pre>