jquery.base64.js icon indicating copy to clipboard operation
jquery.base64.js copied to clipboard

Euro sign error

Open johndekroon opened this issue 10 years ago • 1 comments

Encoding a € sign will cause the INVALID_CHARACTER_ERR

johndekroon avatar Dec 01 '14 11:12 johndekroon

Consider using escape and unescape.

See "Unicode Strings" at https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/btoa

Might want to check out these too in case the above can not be used: http://stackoverflow.com/questions/23013871/how-to-parse-into-base64-string-the-binary-image-from-response

and

http://stackoverflow.com/questions/6965107/converting-between-strings-and-arraybuffers

Hope that helps, if you have not found a solution yet that is :)

JonasNo avatar Jul 30 '15 09:07 JonasNo