Enable UTF-8 encoding for JavaScript

后端 未结 11 911
悲哀的现实
悲哀的现实 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:42

    This is a quite old request to reply but I want to give a short answer for newcommers. I had the same problem while working on an eight-languaged site. The problem is IDE based. The solution is to use Komodo Edit as code-editor. I tried many editors until I found one which doesnt change charset-settings of my pages. Dreamweaver (or almost all of others) change all pages code-page/charset settings whenever you change it for page. When you have changes in more than one page and have changed charset of any file then clicked "Save all", all open pages (including unchanged but assumed changed by editor because of charset) are silently re-assigned the new charset and all mismatching pages are broken down. I lost months on re-translating messages again and again until I discovered that Komodo Edit keeps settings separately for each file.

提交回复
热议问题