When I usually open files I use open
syntax where it gives me option of opening with a specific encoding, for eg.
f = open('L2G8970_PSA_PVS_SmokeTest_Report_Trial.xml', encoding="utf8")
But when I am trying with tkinter's filedialog.askopenfile()
syntax
filename = filedialog.askopenfilename()
file is getting opened with different encoding.
Please help on how to import with utf-8 encoding.