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

loading a javascript file using a particular charset #304

Open
serle opened this issue Apr 15, 2014 · 0 comments
Open

loading a javascript file using a particular charset #304

serle opened this issue Apr 15, 2014 · 0 comments
Labels

Comments

@serle
Copy link

serle commented Apr 15, 2014

Hi,

I was trying to load the d3 library which requires the utf-8 charset to load. To get it to work I hacked head.js code, see last line.

ele = doc.createElement("script");
ele.type = "text/" + (asset.type || "javascript");
ele.src = asset.url;
ele.charset = "utf-8";

Suggestion, update the library to pass the charset in as an additional parameter on each load method call.

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

No branches or pull requests

2 participants