Skip to content

Commit

Permalink
fix: correct Base64 decoding to support UTF-8 characters (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 authored Oct 23, 2024
1 parent 44f74b5 commit 716ccb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const encodeBase64 = (data: string) => {
return Buffer.from(data).toString('base64');
};
export const decodeBase64 = (data: string) => {
return Buffer.from(data, 'base64').toString('ascii');
return Buffer.from(data, 'base64').toString('utf-8');
};

export const objectToJSON = (obj: object) => {
Expand Down

0 comments on commit 716ccb1

Please sign in to comment.