diff --git a/server.js b/server.js index e914fc22e..28c37f94e 100644 --- a/server.js +++ b/server.js @@ -4180,7 +4180,7 @@ function migrateSecrets() { try { let modified = false; - const fileContents = fs.readFileSync(SETTINGS_FILE); + const fileContents = fs.readFileSync(SETTINGS_FILE, 'utf8'); const settings = JSON.parse(fileContents); const oaiKey = settings?.api_key_openai; const hordeKey = settings?.horde_settings?.api_key;