Change to utf-8 to support localization
This commit is contained in:
parent
0296247d82
commit
131b350ee7
@ -132,7 +132,7 @@ function filter(str, type) {
|
|||||||
function specToChunk(srcDir, s) {
|
function specToChunk(srcDir, s) {
|
||||||
if (s.method == "plaintext") {
|
if (s.method == "plaintext") {
|
||||||
const buf = fs.readFileSync(srcDir + "/" + s.file);
|
const buf = fs.readFileSync(srcDir + "/" + s.file);
|
||||||
const str = buf.toString("ascii");
|
const str = buf.toString("utf-8");
|
||||||
const chunk = `
|
const chunk = `
|
||||||
// Autogenerated from ${srcDir}/${s.file}, do not edit!!
|
// Autogenerated from ${srcDir}/${s.file}, do not edit!!
|
||||||
const char ${s.name}[] PROGMEM = R"${s.prepend || ""}${filter(str, s.filter)}${
|
const char ${s.name}[] PROGMEM = R"${s.prepend || ""}${filter(str, s.filter)}${
|
||||||
|
Loading…
Reference in New Issue
Block a user