react-d3-components icon indicating copy to clipboard operation
react-d3-components copied to clipboard

Infamous d3 encoding issue.

Open jtremback opened this issue 10 years ago • 1 comments

Hi, I just spent 20 minutes tracking down a bug that I thought was caused this, then by Browserify, but then turned out to be caused by d3 itself.

https://github.com/mbostock/d3/issues/1747

Basically, the authors of d3 have used some fancy characters which will cause a syntax error if loaded in a script tag without a charset="utf-8" attribute. They don't want to change them because they feel that most people using d3 will use a minified version. Unfortunately that is not the case for those using CommonJS.

Might be good to add something to the docs.

jtremback avatar Mar 28 '15 04:03 jtremback

Thanks for the info! I will add a note to the readme.

codesuki avatar Mar 30 '15 03:03 codesuki