class sss(webapp.RequestHandler):
def get(self):
url = "http://www.google.com/"
result = urlfetch.fetch(url)
if result.status_code == 200:
self.response.out.write(result.content)
and this view show :
when i change code to this:
if result.status_code == 200:
self.response.out.write(result.content.decode('utf-8').encode('gb2312'))
it show :
so ,what i should do ?
thanks
updated
when i use this :
self.response.out.write(result.content.decode('big5'))
the page is :
it is different with i saw google.com
how to get google.com that i saw ?
thanks