Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed base64 comment on illegal char

  • Loading branch information...
commit c77a51360b7d24c66892e5aca8e0303605b31677 1 parent 3699b1a
Alexey Zapparov authored
3  articles/development/javascript/2011-11-11-base64-encodedecode-of-utf8-in-browser-with-js.txt
View
@@ -155,8 +155,7 @@ function decode(data) {
if (-1 === value) {
// Skip illegal characters and whitespace
- logger.warn("Illegal characters (code=" + code + ") in position " +
- idx + ": ordinal not in range(128)");
+ logger.warn("Illegal characters (code=" + code + ") in position " + idx);
} else {
// Collect data into leftdata, update bitcount
leftdata = (leftdata << 6) | value;
3  bits/2011-11-11-base64-encodedecode-of-utf8-in-browser-with-js/base64.js
View
@@ -145,8 +145,7 @@
if (-1 === value) {
// Skip illegal characters and whitespace
- logger.warn("Illegal characters (code=" + code + ") in position " +
- idx + ": ordinal not in range(128)");
+ logger.warn("Illegal characters (code=" + code + ") in position " + idx);
} else {
// Collect data into leftdata, update bitcount
leftdata = (leftdata << 6) | value;
Please sign in to comment.
Something went wrong with that request. Please try again.