title: How to solve this error?-'charmap' codec can't encode character '\u200e' in position 158023: character maps to <undefined>
body: <p>I am using python 3.6.3
  and the code which i was running is-</p>
  
  <pre><code>import re
  import urllib.request
  #https://www.google.com/finance?q=
  url="http://www.google.com/finance?q="
  stock=input("Enter the stock you want to search=")
  url1=url+stock
  print(url1)
  try:
      headers={}
      headers['User-Agent']="Mozilla/5.0 (Windows NT 10.0; Win64; x64) 
      AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 
      Safari/537.36"
      req=urllib.request.Request(url1,headers=headers)
      resp=urllib.request.urlopen(req)
      respdata=resp.read()
      respdata1=respdata.decode("utf-8")
      f=open("webdata.txt","w")
      f.write(str(respdata1))
      f.close()
  except Exception as e:
      print(str(e))
  </code></pre>
  
  <p>This program shows the current stock price of any company.</p>