Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#404] encoding non-english characters #405

Merged

Conversation

TheOneTheOnlyDavidBrown
Copy link
Contributor

closes #404

@sahat
Copy link
Owner

sahat commented May 13, 2015

@TheOneTheOnlyDavidBrown could you run gulp? It will update other satellizer.js files in examples/client, satellizer.min.js and examples/server/php.

@TheOneTheOnlyDavidBrown
Copy link
Contributor Author

@sahat Done

sahat added a commit that referenced this pull request May 13, 2015
…_english_characters

[#404] encoding non-english characters
@sahat sahat merged commit c265aaf into sahat:master May 13, 2015
@sahat
Copy link
Owner

sahat commented May 13, 2015

Thanks.

@@ -295,7 +295,7 @@
if (token && token.split('.').length === 3) {
var base64Url = token.split('.')[1];
var base64 = base64Url.replace('-', '+').replace('_', '/');
return JSON.parse($window.atob(base64));
return JSON.parse(decodeURIComponent(escape(window.atob(base64))));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/escape

This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encoding issue
3 participants