Skip to content

fix(editor): Fix the issue that the contents of json, html, csv, md, txt, and css files contain garbled Chinese characters #16118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
fix(editor): Modify base64DecodeUTF8 fallback function
  • Loading branch information
luka-mimi committed Jun 7, 2025
commit feaedd4d4ac373fd60a2e0d5b96391030998ba9b
2 changes: 1 addition & 1 deletion packages/workflow/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const base64DecodeUTF8 = (str: string): string => {
} catch (error) {
// Fallback method for older browsers
console.warn('TextDecoder not available, using fallback method');
return decodeURIComponent(escape(atob(str)));
return atob(str);
}
};

Expand Down