When do I need to use accept-charset = "UTF-8" in an HTML form?

I am curious if there is a usage example for the accept-charset="UTF-8" attribute in HTML forms? It seems to be 100% redundant when pages are already advertised as utf-8, and in some cases this is incorrectly seen by some browsers. Did I miss something?

+4
source share
1 answer

When the page is already utf-8, it is redundant, but not 100%. If the user overrides the page encoding, adding this form to the form is an additional security measure.

+3
source

Source: https://habr.com/ru/post/1397310/


All Articles