Jan-09-2020, 05:31 PM
I want to show a web page(actually a google map) in tkinter
Error:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 12619: invalid start byteimport urllib.request
from tk_html_widgets import HTMLLabel
from tkinter import *
root = tk.Tk()
text = HTMLLabel(root)
text.pack(fill="both", expand=True)
text.set_html(urllib.request.urlopen("https://www.google.com" ).read().decode("UTF-8"))
text.fit_height()
root.mainloop()
