Timeline for How to change the property "default_encoding" of Sublime Text(Version 3.1.1, Build 3176) from "UTF-8" to "ISO-8859-1"?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 9, 2018 at 11:14 | vote | accept | JSLover | ||
Nov 9, 2018 at 8:40 | comment | added | mja |
You need to specify encoding detection order in mb_detect_encoding where "ISO-8859-1" is detected first, see here.
|
|
Nov 9, 2018 at 8:08 | comment | added | JSLover | 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? | |
Nov 9, 2018 at 7:28 | history | edited | mja | CC BY-SA 4.0 |
added 145 characters in body
|
Nov 9, 2018 at 7:27 | comment | added | mja | I updated the answer. | |
Nov 9, 2018 at 7:12 | comment | added | JSLover | 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? | |
Nov 9, 2018 at 5:35 | review | First posts | |||
Nov 9, 2018 at 5:42 | |||||
Nov 9, 2018 at 5:33 | history | answered | mja | CC BY-SA 4.0 |