Enable UTF-8 encoding for JavaScript

后端 未结 11 951
悲哀的现实
悲哀的现实 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条回答
  •  被撕碎了的回忆
    2020-12-09 10:40

    The encoding for the page is not set correctly. Either add a header

    
    

    or use set the appropriate http header.

    Content-Type:text/html; charset=UTF-8
    

    Firefox also allows you to change the encoding in View -> Character encoding.

    If that's ok, I think javascript should handle UTF8 just fine.

提交回复
热议问题