Closed oooookk7 closed 7 years ago
I feel like you should have a <meta>
tag in you <head>
See http://www.w3schools.com/tags/att_meta_charset.asp
Would that not fix the issue ? Seems pretty standard to me.
It's true that <meta>
tag is a standard (the CDN automatically adds it), but these characters should not exist in the code though.
Try this version, see if that fixes the issue : https://github.com/Temasys/AdapterJS/tree/GH-240-bad-characters
Ha ha, sorry, I just saw your PR
PR merged : https://github.com/Temasys/AdapterJS/pull/241
Too late too late!
It seems like there are weird characters in the script when loaded in the CDN demos. See sample demo link here. If you open the Web Console, you will see the following line:
Then if you click the the
adapter.debug.js
part in that console log line, you will have to scroll to line644
, and you will see weird charactersâ€
in the script. Here's an example of how it's like now:The solution right now is to set the
charset="utf-8"
on the<script>
, or to remove these characters in grunt tasks when compiling for SkylinkJS.