-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Polymer does not display cyrillic characters correctly #498
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I just discovered a problem with cyrillic text in Polymer.
When I use cyrillic text in the polymer element definition, the browser display it like it not understand the encoding.
I found the place in Polymer sources which cause the problem.
Polymer version I used:
0.2.4
File:
/HMTLImports/src/Parser.js
Line:
220
Source code:
Description:
When encoding script-string in Base64 data URI, browser don't "undestand" cyrillic symbols.
My solution is to encode script-string with only "encodeURIComponent" function and supply it with "data:text/javascript;charset=utf-8," URI header (instead of "data:text/javascript;base64," header).
Then everything works correctly.
My patch:
The text was updated successfully, but these errors were encountered: