You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/07/30 06:23:30 UTC

DO NOT REPLY [Bug 21986] New: - add accept-charset attribute to html:form

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21986>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21986

add accept-charset attribute to html:form

           Summary: add accept-charset attribute to html:form
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: tsang_cn@ctimail3.com


As defined in HTML http://www.w3.org/TR/html4/interact/forms.html

The accept-charset attribute in HTML form tag specifies the list of character
encodings for input data that is accepted by the server processing this form.

Without this attribute user can change the encoding for themselves using menu
options in browser (e.g. change to ISO-8859) but my JSP server expected the
character encoding in UTF-8.

With this attribute, I can force the encoding in UTF-8 as follows

<form action=... method="post" accept-encoding="UTF-8">

Thanks
C.N.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org