The accept-charset attribute in HTML is used to include the character encodings for form submission.
Example
You can try to run the following code to implement accept-charset attribute in HTML −
<!DOCTYPE html> <html> <head> <title>File Upload Box</title> </head> <body> <form accept-charset = "ISO-8859-1"> <input type = "file" name = "fileupload" accept = "image/*" /> </form> </body> </html>