Enable UTF-8 encoding for JavaScript

后端 未结 11 945
悲哀的现实
悲哀的现实 2020-12-09 10:17

I don\'t know how should I titled this question but hope my friends will understand the problem and will help me :)

I want to show log message in arabic

11条回答
  •  旧时难觅i
    2020-12-09 10:44

    RobW is right on the first comment. You have to save the file in your IDE with encoding UTF-8. I moved my alert from .js file to my .html file and this solved the issue cause Visual Studio saves .html with UTF-8 encoding.

提交回复
热议问题