-
Notifications
You must be signed in to change notification settings - Fork 334
Does not work with UTF chars #1
Comments
Oh, this is a shame! I was going to use for utf and I got the same error |
I wish I'd seen this earlier, it would've saved me some trouble. :( I wound up using the suggestions in the following stackoverflow question. (Since there is a whole source code + multiple suggestions on how to implement base64 in javascript there, I simply cut-and-pasted to get all of the goodies in one file.) |
+1 |
+1 to fix |
simple workaround:
This will breakup UTF8 chars into their component bytes and then pass to to the base 64 encode routine. unescape is not UTF8 aware to it treats each % encoded byte as a single character.
Although |
@tmorehouse Thanks! |
for asp.net developers, return your JSON as: |
Does not work with UTF chars. Returns INVALID_CHARACTER_ERR: DOM Exception 5.
I think that this should be mentioned somewhere.
The text was updated successfully, but these errors were encountered: