LookupError: unknown encoding: cp720
FROM this following code fragment:
print "Name: ", objItem.Name
It was obvious, since my Windows System is an Arabic locale, with English default text, that I was surly to have some kind of problem.
I managed to find a lot of information regarding codecs, encoding, local, setlocale, etc. However, I managed to get it solved by using the
str()
function! print "Name: ", str(objItem.Name)
Voi la..
7 comments:
Hi mate ...
Thank you for your comment.
you saved my day.
Wish you luck
Nice post, came in handy today. Thanks.
Thanks
great!
Good words.
eww.. i hate C++.. took the class and hated it.. sakheeeef
Thank you very much
Post a Comment