0

i have a link with uni language , and it is give error .. can anyone help !!

i want to make a code to import links from xls file and a part of link is in arabic language "www.site.com/عربي" so win i want to deal with it this error come : unicodeencodererror: 'ascii' codec can't encode characters in position : ordinal not in range

19th Jul 2018, 11:52 AM
Ahmed ik
Ahmed ik - avatar
1 Antwort
0
Not sure about you're code but try to not use str to convert from unicode to encoded text/bytes. https://docs.python.org/2.7/howto/unicode.html if you read the above, the first error covered there is the one you want.
22nd Jul 2018, 11:46 AM
Dave David
Dave David - avatar