Answer the question
In order to leave comments, you need to log in
How to decode from base64 to json with Cyrillic values?
There is a file in base64 (should be json)
I tried to do it this way:
Buffer.from(requestBodyObject.signature, 'base64').toString('utf8')
Answer the question
In order to leave comments, you need to log in
Try using atob
let someBase64Str = Buffer.from(requestBodyObject.signature, 'base64');
console.log(atob(someBase64Str));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question