Failing to send parameters that have characters outside of latin 1 range in angular
Posted: Mon May 10, 2021 8:50 am
Hello,
I am using the stimulsoft viewer for angular (v2021.2.4) and I am trying to send an object that contains "ščž" characters. But I get a "Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range." error. The properties I am sending is an object with text values. I have researched and I saw that the properties go through a "btoa(JSON.stringify(myParameters))" function before being sent. So the JSON gets converted to a base 64 string wich has a limited range. Is there a way I can send an object that contains text outside of the lating1 range?
Best regards
I am using the stimulsoft viewer for angular (v2021.2.4) and I am trying to send an object that contains "ščž" characters. But I get a "Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range." error. The properties I am sending is an object with text values. I have researched and I saw that the properties go through a "btoa(JSON.stringify(myParameters))" function before being sent. So the JSON gets converted to a base 64 string wich has a limited range. Is there a way I can send an object that contains text outside of the lating1 range?
Best regards