Atom. Sublime. Visual Studio Code. It doesn't matter. Spending more a few minutes with any of these editors to inexplicably turn half of your skins into...
Oh. I could use UTF-8, and it would work on every editor. But then all of my ASCII symbols turn into other kinds of gibberish nonsense symbols. Like, f---. Why is encoding such a pain? I just want to display basic english letters on a screen.
Last edited by Virginityrocks on February 17th, 2019, 9:38 pm, edited 2 times in total.
I don't know Sublime Text, or any of the others to be honest, I use Notepad++, but I'm betting there is a way to have it default to UTF-16 Little Endian if you want. You might not, if you do a lot of web development, which is almost always encoded as UTF-8, but I'm pretty sure you can.
I would not ever encode anything "without BOM". That will in fact drive you crazy, as any encoding that is w/o BOM is assumed to be ANSI, and that is just going to blow up as soon as you paste in any Unicode characters above 255.
I think I'm mostly amazed by the stupidity of 1990s programmers in creating the conditions where so many different encodings exist. It's a buggy terribly frustrating mess.
Virginityrocks wrote: ↑February 17th, 2019, 9:59 pm
I think I'm mostly amazed by the stupidity of 1990s programmers in creating the conditions where so many different encodings exist. It's a buggy terribly frustrating mess.
I would argue that it isn't stupidity at all, but rather that 1990s programmers lived in the 1990s, and 2019 programmers, while living in 2019, need to have some concern with not just breaking everything that was ever written before 2019. It's called "backwards compatibility", and it's really not a bad thing overall.
In fact, those 1990s programmers had the same concerns about things written in the 1960s and 1970s and 1980s... Be thankful we are not encoding in EBCDIC, and that we have thankfully almost entirely gotten rid of CodePage in favor of Unicode.
Trust me, I'd be all for a single, robust, standard UTF-32 Little Endian for everything except the web, where "bandwidth" matters. That should stay UTF-8. Increasing the amount of traffic by a factor of four overnight might not go over that well.
I use vscode as my daily driver, and I have just used UTF-8 in all of my skins to avoid encoding problems like this, and in the few cases I need non-utf8 characters, I use character reference variables. But that is just me.
I found a setting that lets you set the default file encoding, and one that tries to open files with the correct encoding by default:
2019-02-17 22_13_08.png
However, I don't see UTF-16 w/ BOM anywhere in the list, just plain ol' UTF-16...
You do not have the required permissions to view the files attached to this post.