diff --git a/.changeset/wise-bugs-admire.md b/.changeset/wise-bugs-admire.md new file mode 100644 index 000000000..d800799e1 --- /dev/null +++ b/.changeset/wise-bugs-admire.md @@ -0,0 +1,6 @@ +--- +"lingo.dev": patch +"@lingo.dev/_sdk": patch +--- + +set utf-8 encoding explicitly diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index ff4779e1f..529364f50 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -100,7 +100,7 @@ export class ReplexicaEngine { const res = await fetch(`${this.config.apiUrl}/i18n`, { method: "POST", headers: { - "Content-Type": "application/json", + "Content-Type": "application/json; charset=utf-8", Authorization: `Bearer ${this.config.apiKey}`, }, body: JSON.stringify( @@ -414,7 +414,7 @@ export class ReplexicaEngine { const response = await fetch(`${this.config.apiUrl}/recognize`, { method: "POST", headers: { - "Content-Type": "application/json", + "Content-Type": "application/json; charset=utf-8", Authorization: `Bearer ${this.config.apiKey}`, }, body: JSON.stringify({ text }),