You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/04/04 19:59:03 UTC

DO NOT REPLY [Bug 34291] New: - [fileupload] allow to change default string encoding to other than ISO-8859

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=34291

           Summary: [fileupload] allow to change default string encoding to
                    other than ISO-8859
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: File Upload
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


my web-app serves all pages as utf-8.

Unfortunately, even the most recent firefox1.0.2 in form posts doesn't specify
the charset (see also Bug 20813). Its form field headers just say 
  Content-Disposition: form-data; name="subject"

Since I do know that all replies by browsers will arrive UTF-8 encoded, it would
be great not to have to convert the encoding for each field myself back from
ISO-8859-1 to UTF-8, but be able to
1) set this globally in a configuration file 
  a) as a charset String or 
  b) to use System.getProperty("file.encoding) or
2) a static
org.apache.struts.upload.CommonsMultipartRequestHandler.initCharset(String
charSet) or
3) use the default ISO-8859-1 as is if none of the above is specified.


----
see also Bug 24465 re transfer encoding and Bug 20813 re charset

Where it happens when using tomcat and struts:
Thread [http-8080-Processor1] (Suspended)
	CommonsMultipartRequestHandler.addTextParameter(HttpServletRequest, FileItem)
line: 422
	CommonsMultipartRequestHandler.handleRequest(HttpServletRequest) line: 213
	RequestUtils.populate(Object, String, String, HttpServletRequest) line: 467
	RequestProcessor.processPopulate(HttpServletRequest, HttpServletResponse,
ActionForm, ActionMapping) line: 798
	RequestProcessor.process(HttpServletRequest, HttpServletResponse) line: 205
	ActionServlet.process(HttpServletRequest, HttpServletResponse) line: 1164
	ActionServlet.doPost(HttpServletRequest, HttpServletResponse) line: 415
	ActionServlet(HttpServlet).service(HttpServletRequest, HttpServletResponse)
line: 709
	ActionServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 802
	ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 252
	ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 173
	StandardWrapperValve.invoke(Request, Response) line: 213
	StandardContextValve.invoke(Request, Response) line: 178
	StandardHostValve.invoke(Request, Response) line: 126
	ErrorReportValve.invoke(Request, Response) line: 105
	StandardEngineValve.invoke(Request, Response) line: 107
	CoyoteAdapter.service(Request, Response) line: 148
	Http11Processor.process(InputStream, OutputStream) line: 856
	Http11Protocol$Http11ConnectionHandler.processConnection(TcpConnection,
Object[]) line: 744
	PoolTcpEndpoint.processSocket(Socket, TcpConnection, Object[]) line: 527
	LeaderFollowerWorkerThread.runIt(Object[]) line: 80
	ThreadPool$ControlRunnable.run() line: 684
	ThreadWithAttributes(Thread).run() line: 595 [local variables unavailable]

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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