My website is set to UTF-8, do i have to set my forms also to utf-8 using the accept-charset for forms?
My guestbook for example allows multi-language so my guestbook database table is utf8_unicode_ci and all my webpages use the same template so the encoding for all pages is utf-8, because I set the charset for my webpages as utf-8 do i have also set the form charset to utf-8 or no because I already set it for the webpage itself?
Reason why is I am converting my website to utf-8 and don’t really want to go through all my site forms adding the form charset utf-8 attribute.
Almost every decent browser ignores the
accept-charsetattribute in favour of the encoding of the page with the form as it is defined incharsetparam of theContent-Typeresponse header. The attribute works as far only in MSIE and even then, it is using it wrong. In MSIE running on Windows, any other value than UTF-8 would be interpreted as CP-1252.Don’t use this attribute. It’s useless.