diff --git a/src/App.jsx b/src/App.jsx index e320ba8..87702b2 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -121,7 +121,11 @@ function App() { const unzip = async (file) => { if (file?.charAt && file.charAt(0) !== "P") { - return file; + console.log(file.replace(/\u00a0/g, " ")); + return file + .replaceAll("Â", " ") + .replaceAll("’", "'") + .replaceAll("â–", "■"); //  is a common issue with UTF-8 encoding in XML files } else { const jszip = new JSZip(); const zip = await jszip.loadAsync(file);