@@ -340,11 +340,11 @@ try: bin = pkgutil.get_data(file_base, fn) if gz: bin = gzip_decode(bin) if decode: - return bin.decode("utf-8") + return bin.decode("utf-8", errors='ignore') else: return str(bin) except: pass @@ -396,11 +396,11 @@ src = zipfile.ZipFile(fn, "r").read(intfn.strip("/")) if not src: src = "" if type(src) is not str: - src = src.decode("utf-8") + src = src.decode("utf-8", errors='replace') return plugin_meta_extract(src, fn) # Actual comment extraction logic