File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " lingo.dev " : patch
3+ " @lingo.dev/_sdk " : patch
4+ ---
5+
6+ set utf-8 encoding explicitly
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export class ReplexicaEngine {
100100 const res = await fetch ( `${ this . config . apiUrl } /i18n` , {
101101 method : "POST" ,
102102 headers : {
103- "Content-Type" : "application/json" ,
103+ "Content-Type" : "application/json; charset=utf-8 " ,
104104 Authorization : `Bearer ${ this . config . apiKey } ` ,
105105 } ,
106106 body : JSON . stringify (
@@ -414,7 +414,7 @@ export class ReplexicaEngine {
414414 const response = await fetch ( `${ this . config . apiUrl } /recognize` , {
415415 method : "POST" ,
416416 headers : {
417- "Content-Type" : "application/json" ,
417+ "Content-Type" : "application/json; charset=utf-8 " ,
418418 Authorization : `Bearer ${ this . config . apiKey } ` ,
419419 } ,
420420 body : JSON . stringify ( { text } ) ,
You can’t perform that action at this time.
0 commit comments