Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I tried making the said change "default_encoding": "ISO-8859-1" in the file "C:\Users\lenovo\AppData\Roaming\Sublime Text 3\Packages\User" but still it doesn't work. It's taking the default value "default_encoding": "UTF-8" only. Why so?
    – JSLover
    Commented Nov 9, 2018 at 7:12
  • 1
    I updated the answer.
    – mja
    Commented Nov 9, 2018 at 7:27
  • Thanks for your updated answer. But, I'm getting some strange result now. I added "default_encoding": "ISO-8859-1" in the file "C:\Users\lenovo\AppData\Roaming\Sublime Text 3\Packages\User" and checked the set encoding using built-in PHP function mb_detect_encoding("str"); but surprisingly instead of getting "ISO-8859-1" as a output result I got "ASCII". Why so?
    – JSLover
    Commented Nov 9, 2018 at 8:08
  • 1
    You need to specify encoding detection order in mb_detect_encoding where "ISO-8859-1" is detected first, see here.
    – mja
    Commented Nov 9, 2018 at 8:40