From cd0c0cfb147ba6cdbc49edf0d04e92a4cc358e94 Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Mon, 9 Jun 2025 10:37:29 +0200 Subject: [PATCH] fix ros utf issues --- src/App.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);