<meta charset="UTF-8">
UTF-8 is default encoder in modern browsers. So all this code does is it adds support for browsers which don't automatically do this. I don't plan on supporting older browsers is there any other reason to add this line of code?
I have heard others saying that leaving it out could lead to some cross scripting attacks, bad things and such but never gave me any clear examples.
Also some old HTMl validator throws error when leaving <meta charset="UTF-8">.
out
https://validator.w3.org/nu/#file
The character encoding was not declared
Then it does this
process with windows-1252.
This isn't great cause this could lead to error if the site has characters that windows-1252
doesn't support.
I'm guessing this only happens on browers that don't default to UTF-8 support this though. Should I be worried about this warning/error if I leave this out.
I have researched, about trying to understand why UTF-8 is used but I can't find a definite answer on to why to use or to not use it.
Thanks in advance.