international characters in Javascript

后端 未结 6 1355
有刺的猬
有刺的猬 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:55

    I get "æøå" for the first one and some junk characters for the next. Could it be that the javascript is not mangling (or mojibake) your letters but the alert dialog uses the system default font, and the font is incapable of displaying the letters?

提交回复
热议问题