agnoster / base32-js

Base32 encoding for JavaScript, based (loosely) on Crockford's Base32
https://github.com/agnoster/base32-js
MIT License
121 stars 61 forks source link

base32 non latin characters #15

Open danrasmuson opened 8 years ago

danrasmuson commented 8 years ago

If I base32 encode this string my name is hereslkdjfaklsjdfa234234@#$!!@35465*()&(*^*&^*&%&^%///劳动力. I get dnwj0vk1dnjj0ubk41m6awk5edp6pt3actgppv3kd9j6cr9j6cu34ctm80hj889180tkad1p6mn2ga9650n5wah6brn2c996brjjybtfpundefinedmundefinedp. Notice undefined in string output.

Python outputs, NV4SA3TBNVSSA2LTEBUGK4TFONWGWZDKMZQWW3DTNJSGMYJSGM2DEMZUIARSIIJBIAZTKNBWGUVCQKJGFAVF4KRGLYVCMJJGLYSS6LZP4WFLHZMKVDSYVGY=

I would expect this to match the python output or throw an error.