u'å§'.encode('gb2312') throws UnicodeEncodeError
<p>Firefox can display <code>'å§'</code> in gb2312 encoded HTML. But <code>u'å§'.encode('gb2312')</code> throws <code>UnicodeEncodeError</code>.</p>

<p>1.Is there a map, so firefox can lookup gb2312 encoded characters in that map, find 01 display matrix and display <code>å§</code>.</p>

<p>2.Is there a map for tranlating unicode to gb2312 but <code>u'å§'</code>  is not in that map?</p>

<p>å§ not in gb2312, use gb18030 instead. I guess firefox may extends encode method when she face unknown characters.</p>

python unicode encode gb2312