[Tutor] unichr not working as expected
Jim Mooney
cybervigilante at gmail.com
Mon Jul 22 20:14:08 CEST 2013
I tried translating the odd chars I found in my dos tree /f listing to
symbols, but I'm getting this error. The chars certainly aren't over
10000, The ord is only 13 - so what's wrong here?
def main():
zark = ''
for x in "ÀÄÄÄ":
zark += unichr(ord(x)-45)
print(zark)
unichr() arg not in range(0x10000) (narrow Python build)
--
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130722/b86ba954/attachment.html>
More information about the Tutor
mailing list