international characters in Javascript

后端 未结 6 1353
有刺的猬
有刺的猬 2020-12-15 08:12

I am working on a web application, where I transfer data from the server to the browser in XML.

Since I\'m danish, I quickly run into problems with the characters

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 08:59

    Just specifying UTF-8 in the header is not enough. I'd bet you haven't saved your file as UTF-8. Any reasonably advanced text editor will have this option. Try that and I'm sure it'll work!

提交回复
热议问题