(Sep-06-2022, 06:54 PM)Winfried Wrote: For some reason, chardet doesn't detect it as UTF8, though:Try check file you take
in
and try to make sure that use utf-8 as default.The file i test
pla.kml
is my input file from OS.Also on your line 18 as i show you specify encoding.
soup = BeautifulSoup(open(item, 'r', encoding='utf-8'), 'xml')Like on windows eg simple editor Notepad++.