force encoding

This commit is contained in:
Fabrice LAMANT
2026-02-04 23:02:20 +01:00
parent f77a37ca02
commit d0afdc430a
3 changed files with 3 additions and 3 deletions

View File

@ -27,6 +27,6 @@ export class Cache {
this.debug(`set: key=${key}`);
const path = this.cachePath(key);
mkdirSync(path.split("/").slice(0, -1).join("/"), { recursive: true });
writeFileSync(path, data);
writeFileSync(path, data, "utf-8");
}
}