summaryrefslogtreecommitdiffstats
path: root/iconvmodule/test_iconv.py
blob: d8c6f8325f01e9d9320ff8187648b1bd07d3a6bb (plain)
1
2
3
4
5
6
7
8
import iconv
s=iconv.open("unicodelittle","iso-8859-1")
r=s.iconv("Hallo",11,return_unicode=1)
print repr(r),len(r)

s=iconv.open("iso-8859-1","unicodelittle")
r=s.iconv(u"Hallo",110)
print r