Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003695 [Resin] minor always 09-24-09 11:07 10-29-09 16:01
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0003695: use file.encoding as default
Description (rep by Jeff Schnitzer)

I wrote up a quick blurb on the issues surrounding character encoding
on the Resteasy list recently: [^]

The short of it is that, if you can get away with it, you should set
UTF-8 everywhere. In particular, you should set the platform default
with -Dfile.encoding=utf-8 and ensure that all your pages are rendered
in utf-8 (ie with the JSP directive). It's cool that Resin has a
config parameter for this, but it will be obviated by setting the
platform default - right, Scott?

The main problem is that POSTed form data will be sent by the browser
in whatever charset encoding was used on the host page, and this
information is not sent along with the request. So the server must
guess... and that usually means going with the platform default.

If you for some reason need to manage multiple charsets in the same
application, you'll need a Filter that executes early and calls
request.setCharacterEncoding() *before* any code calls

Additional Information
Attached Files

- Relationships

- Notes
10-29-09 16:01

For 4.0.2, file.encoding is now the default encoding.

- Issue History
Date Modified Username Field Change
09-24-09 11:07 ferg New Issue
10-29-09 16:01 ferg Note Added: 0004272
10-29-09 16:01 ferg Assigned To  => ferg
10-29-09 16:01 ferg Status new => closed
10-29-09 16:01 ferg Resolution open => fixed
10-29-09 16:01 ferg Fixed in Version  => 4.0.2

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker