international characters in Javascript

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

    You can also use String.fromCharCode() to output a character from a numeric entity.

    e.g. String.fromCharCode( 8226 ) will create a bullet character.

提交回复
热议问题