url='https://www.bing.com/search?q=你好&qs=n&form=QBLH&pq=你好&sc=2-0&sp=-1&sk=&cvid=8F0865226C'
urllib.request.urlopen(url)
Then console shows this:
url='https://www.bing.com/search?q=你好&qs=n&form=QBLH&pq=你好&sc=2-0&sp=-1&sk=&cvid=8F0865226C'
urllib.request.urlopen(url)
Then console shows this:
You will need to encode the double byte chars with quote from urllib.parse.
import urllib.request
from urllib.parse import quote
url='https://www.bing.com/search?q=%s&qs=n&form=QBLH&pq=%s&sc=2-0&sp=-1&sk=&cvid=8F0865226C'%(quote('你好'),quote('你好'))
urllib.request.urlopen(url)
you can read more from : How to deal with unicode string in URL in python3?