-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pid,

On 3/17/2009 6:52 AM, Pid wrote:
> Does the Servlet Spec define the default value of the request encoding,
> or is this a Tomcat feature?

The servlet spec (section 3.9 "Request data encoding") specifies
ISO-8859-1 as the default encoding for POST data when no charset has
been specified. Although the servlet spec provides a default, I believe
it is really inheriting this default from the HTTP spec.

> If the latter, it would be a reasonable
> candidate for a Connector parameter, perhaps.

The <Connector> currently has both useBodyEncodingForURI and URIEncoding
attributes for interpreting the URI, but nothing for the encoding of the
body. Since this can easily be done using filters (whereas there is no
way to fiddle with the URI encoding), I doubt it will be added to the
<Connector>.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkm/phgACgkQ9CaO5/Lv0PDITQCdGmVpl/GdHee3zAwGkbcUTQiq
pL8AoJWxoH/iAjDlD5SQlirwn0XG5ZwZ
=mwQW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to