I trying open page with Russian symbols.
webbrowser.open('https://www.google.com/?q=привет')
But I have this in browser: https://www.google.com/?q=??????
I trying open page with Russian symbols.
webbrowser.open('https://www.google.com/?q=привет')
But I have this in browser: https://www.google.com/?q=??????
Use a unicode string.
webbrowser.open(u'https://www.google.com/?q=привет')
You'll probably also want to use UTF-8 encoding for your source file, so make sure your editor actually saves in UTF-8 and add this to the top of the program
# -*- coding: utf-8 -*-