Skip to content

Commit

Permalink
Change to utf-8 to support localization
Browse files Browse the repository at this point in the history
  • Loading branch information
Master-MiShutka authored Dec 20, 2020
1 parent 0296247 commit 131b350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}${
Expand Down

0 comments on commit 131b350

Please sign in to comment.