czottmann / jquery-base64 Goto Github PK
View Code? Open in Web Editor NEWPort of Nick Galbreath's JS base64 string encoder.
Port of Nick Galbreath's JS base64 string encoder.
Hi - would you be willing to tag the repo with a version number so that this can be included in cdnjs?
Relevant bug: cdnjs/cdnjs#1615 (comment)
Does not work with UTF chars. Returns INVALID_CHARACTER_ERR: DOM Exception 5.
function _getbyte(s, i) {
var x = s.charCodeAt(i);
if (x > 255) {
throw "INVALID_CHARACTER_ERR: DOM Exception 5"
}
return x
}
I think that this should be mentioned somewhere.
Got an error while encoding a json string.
var regDetails = JSON.stringify(data);
var json = $.base64.encode(regDetails);
WHERE data is a valid json data.
Uncaught INVALID_CHARACTER_ERR: DOM Exception 5
Great plugin. One issue I found when trying to push non-latin characters -- if you run it as such
$.base64.encode('पनामा');
It will return an error as such:
"INVALID_CHARACTER_ERR: DOM Exception 5"
It would be great to get this to work in all alphabets if at all possible!
Please? :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.