Esri / wind-js

An demo animation of wind on a Canvas layer in the JSAPI
MIT License
735 stars 214 forks source link

Special characters like λ and Δ becomes mojibake λ and Δ #29

Closed gloomcheng closed 7 years ago

gloomcheng commented 7 years ago

I've tried to clone code on my server but some of the code becomes mojibake like λ to λ, and I've tried to search related issue but I really have no idea what is the "right" keyword to search. Does anyone could help to solve this issue?

You may access the site on http://vps2.zhelang.com.tw/windy/wind-js/ and you will found error message "Uncaught SyntaxError: Invalid or unexpected token" on windy.js:27

I've tried to deploy it on my laptop (localhost) and remote server (vps2.zhelang.com.tw) all face same issue.

jgravois commented 7 years ago

i'm not able to access the link you shared. it is password protected.

what web server are you using? i don't have much experience in this area but i suspect you'll need to specify explicit UTF-8 encoding for the .js and .html or something like that.

gloomcheng commented 7 years ago

@jgravois You're right, it works after specify explicit UTF-8 encoding. Really appreciate it.

jgravois commented 7 years ago

excellent!