title: How to use string.translate() to translate this?
body: <p>first, I have this:</p>
  
  <pre><code>strSrc = '3.14'
  </code></pre>
  
  <p>And I hope the result is this: </p>
  
  <pre><code>strRst = '叁点壹肆'
  </code></pre>
  
  <p>P.s: The number '3' in traditional-Chinese is '叁'. Here:</p>
  
  <blockquote>
    <p>0零    1壹  2贰  3叁  4肆  5伍  6陆  7柒  8捌  9玖</p>
  </blockquote>
  
  <p>I want to translate <code>strSrc</code> into Chinese using <strong>string.translate()</strong>.</p>
  
  <p>I check the <a href="http://docs.python.org/2/library/string.html#string.translate" rel="nofollow">string.translate() doc</a>,it said:</p>
  
  <blockquote>
    <p>and then translate the characters using table, which must be a 256-character string</p>
  </blockquote>
  
  <p>so, does that mean I should <strong>NOT</strong> use <strong>string.translate()</strong> to solve this problem??</p>
  
  <hr>
  
  <p>but it always occurs encode problem, like this:</p>
  
  <pre><code>&gt;&gt;&gt; engToChn = string.maketrans('0123456789.', '零壹贰叁肆伍陆柒捌玖点')
  Traceback (most recent call last):
      File "&lt;stdin&gt;", line 1, in &lt;module&gt; 
  ValueError: maketrans arguments must have same length
  </code></pre>
  
  <hr>
  
  <p>if you try this:</p>
  
  <pre><code>&gt;&gt;&gt; engToChn = string.maketrans('0123456789.', u'零壹贰叁肆伍陆柒捌玖点')
  or
  &gt;&gt;&gt; engToChn = string.maketrans(u'0123456789.', u'零壹贰叁肆伍陆柒捌玖点')
  </code></pre>
  
  <p>it will this problem:</p>
  
  <pre><code>Traceback (most recent call last)
      File "&lt;stdin&gt;", line 1, in module
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-10: ordinal not in range(128)
  </code></pre>