From 3245c20044faeeabc882bd9b6862cd738ca6d8ac Mon Sep 17 00:00:00 2001 From: VeranikaP Date: Thu, 13 Feb 2025 14:45:34 +0100 Subject: [PATCH 1/2] fix: add utf-8 explicitly --- packages/sdk/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }), From e820aa76a2f57d7dfa327ba03a901ec24ad587fc Mon Sep 17 00:00:00 2001 From: VeranikaP Date: Thu, 13 Feb 2025 17:10:49 +0100 Subject: [PATCH 2/2] fix: changeset --- .changeset/wise-bugs-admire.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/wise-bugs-admire.md 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