commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Wiedmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FILEUPLOAD-150) Text field containing an € (Euro) character will not be correctly evaluated, the character gets not recognized
Date Mon, 03 Dec 2007 19:44:43 GMT

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547961
] 

Jochen Wiedmann commented on FILEUPLOAD-150:
--------------------------------------------

Most likely, you are simply using

    getString()

rather than

    getString(String encoding)

on the server side or there is some similar error on your side.


> Text field containing an € (Euro) character will not be correctly evaluated, the character
gets not recognized
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-150
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-150
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, AIX - JDK 1.4
>            Reporter: Ralf Pfiszter
>
> I have a multiline edit field in a multipart/form-data form.
> In the same form I have an input field of type "file" to enable a file upload.
> When entering the € character into the multiline edit field and submitting the form
the result of the €  is € after the form contents got evaluated / extracted.
> The JSP page containing the form is defined with
> <!--meta http-equiv="Content-Type" content="text/html; charset=utf-8" /-->;
> and 
> <%@ page session="true" language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
> The form is defined with
> <form name="DetailForm" enctype="multipart/form-data" action="xxServlet" method="post">
> When processing the request within the servlet I create a new ServletFileUpload instance
with
>     ServletFileUpload upload = new ServletFileUpload(aDiskFileItemFactory);
>     // set the encoding
>     upload.setHeaderEncoding(req.getCharacterEncoding());
> Afterwards I let parse the request.
> However, it seems to me that during the parsing the default code set ISO 8859-1 is used
instead of the previously defined one - when trying to debug into a bit.
> (ISO 8859-1 does not contain the € character.)
> Maybe an issue with Stream handling?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message