On Friday, February 15, 2019 at 12:50:09 PM UTC-8, [email protected] wrote: > > Hi, > > In what way is this a web2py question? >
The OP could be planning on rendering the imported text as part of a web2py page, either as a DIV or an IFRAME. But the OP also should be looking at the Python library, section 7.8 codecs. <URL:https://docs.python.org/2.7/library/codecs.html> /dps > On Friday, 15 February 2019 16:04:50 UTC, דביר ידעי wrote: >> >> hi, >> this is the first time to publish here and the first time trying to user >> python alone..:) >> im trying to get content from url >> >> from urllib import request >> >> link = >> 'https://www.cdsoft.co.il/index.php?id_product=301391&controller=product' >> f = request.urlopen(link) >> myfile = f.read() >> print(myfile) >> >> >> but what im getting for hebrew is : >> content="\xd7\x90\xd7\xa0\xd7\x98\xd7\x99 >> \xd7\x95\xd7\x99\xd7\xa8\xd7\x95\xd7\xa1 Eset NOD32 Antivirus For 1 Computer >> 1 Year - \xd7\x90\xd7\xa0\xd7\x98\xd7\x99 >> \xd7\x95\xd7\x99\xd7\xa8\xd7\x95\xd7\xa1 NOD32 >> \xd7\x94\xd7\xa0\xd7\xa4\xd7\x95\xd7\xa5 >> \xd7\x91\xd7\x99\xd7\x95\xd7\xaa\xd7\xa8 >> \xd7\x91\xd7\x99\xd7\xa9\xd7\xa8\xd7\x90\xd7\x9c \xd7\xa2\xd7\x9d >> \xd7\x94\xd7\x94\xd7\x92\xd7\xa0\xd7\x94 >> \xd7\x94\xd7\x97\xd7\x96\xd7\xa7\xd7\x94 \xd7\xa9\xd7\x9c\xd7\x90 >> \xd7\x9e\xd7\x90\xd7\x98\xd7\x94 \xd7\x90\xd7\xaa >> \xd7\x94\xd7\x9e\xd7\x97\xd7\xa9\xd7\x91.\xd7\xa8\xd7\xa9\xd7\x99\xd7\x95\xd7\x9f >> \xd7\x9c\xd7\x9e\xd7\x97\xd7\xa9\xd7\x91 \xd7\x90\xd7\x97\xd7\x93 >> \xd7\x9b\xd7\x95\xd7\x9c\xd7\x9c >> \xd7\xa2\xd7\x93\xd7\x9b\xd7\x95\xd7\xa0\xd7\x99\xd7\x9d >> \xd7\x9c\xd7\xa9\xd7\xa0\xd7\x94" /><meta name="keywords" >> content="\xd7\x9e\xd7\x97\xd7\x99\xd7\xa8,\xd7\x90\xd7\xa0\xd7\x98\xd7\x99 >> \xd7\x95\xd7\x99\xd7\xa8\xd7\x95\xd7\xa1,eset,\xd7\x90\xd7\xa0\xd7\x98\xd7\x99 >> \xd7\x95\xd7\x99\xd7\xa8\xd7\x95\xd7\xa1 >> >> what to do ? and how to encode it ? >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

