The HTMLFormElement.acceptCharset property represents the character encoding for the given form element.
HTMLFormElement.acceptCharset
MDN Reference