You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem with displaying Cyrillic characters in the BPMN scheme
this happens when decoding base64 via the atob function, please add another decoding function
worked example:
const xml = decodeBase64ToUtf8(props.diagramData);
function decodeBase64ToUtf8(base64) {
// decode base64 in binary data
const binaryString = atob(base64);
// Convert array byte
const binaryLen = binaryString.length;
const bytes = new Uint8Array(binaryLen);
for (let i = 0; i < binaryLen; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
// Decode bytes as UTF-8
const decoder = new TextDecoder('utf-8');
return decoder.decode(bytes);
}
The text was updated successfully, but these errors were encountered:
There is a problem with displaying Cyrillic characters in the BPMN scheme
this happens when decoding base64 via the atob function, please add another decoding function
worked example:
const xml = decodeBase64ToUtf8(props.diagramData);
function decodeBase64ToUtf8(base64) {
// decode base64 in binary data
const binaryString = atob(base64);
// Convert array byte
const binaryLen = binaryString.length;
const bytes = new Uint8Array(binaryLen);
for (let i = 0; i < binaryLen; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
// Decode bytes as UTF-8
const decoder = new TextDecoder('utf-8');
return decoder.decode(bytes);
}
The text was updated successfully, but these errors were encountered: