Convert decimal number to string like \uxxxx in Python
<p>I have decimal number based on len of string. How to convert it to \u0030 (with 0030 4 digits is len of string)?</p>

<p>Example:</p>

<pre><code>char = 'teststring'
</code></pre>

<p>have 10 characters</p>

<p>then convert to</p>

<pre><code>u'\u0010teststring'
</code></pre>

<p>I used for</p>

<pre><code>char = char.encode('utf-16le')
</code></pre>
