From 131b350ee74134bbc4582d9a19dbb0c73c6bfd10 Mon Sep 17 00:00:00 2001 From: Master-MiShutka Date: Sun, 20 Dec 2020 22:23:20 +0300 Subject: [PATCH] Change to utf-8 to support localization --- tools/cdata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cdata.js b/tools/cdata.js index aa473deb..002b9e5d 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -132,7 +132,7 @@ function filter(str, type) { function specToChunk(srcDir, s) { if (s.method == "plaintext") { const buf = fs.readFileSync(srcDir + "/" + s.file); - const str = buf.toString("ascii"); + const str = buf.toString("utf-8"); const chunk = ` // Autogenerated from ${srcDir}/${s.file}, do not edit!! const char ${s.name}[] PROGMEM = R"${s.prepend || ""}${filter(str, s.filter)}${