You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lars Paetzold (JIRA)" <ji...@apache.org> on 2008/01/24 10:06:04 UTC

[jira] Created: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
---------------------------------------------------------------------------------------------------------

                 Key: WW-2455
                 URL: https://issues.apache.org/struts/browse/WW-2455
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions
    Affects Versions: 2.0.11
         Environment: Suse 9.11, x64, 4 GB Ram
            Reporter: Lars Paetzold


We got the following form-element:
<s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
...
<s:textfield label="Vorname" name="p_vorname" required="true" />
<s:textfield label="Nachname" name="p_nachname" required="true" />
<s:file label="Foto" name="p_bild" />
..
</s:form>

and the header-elements:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
...
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
...
</head>


Trying the values:
p_vorname = Özgün
p_nachname = Ipslü
p_bild = somefile.jpg

if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:

java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1


i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Issue Comment Edited: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Lars Paetzold (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43085#action_43085 ] 

lpaetzold edited comment on WW-2455 at 1/24/08 2:25 AM:
------------------------------------------------------------

i got on the idea to use 
System.out.println(request.getCharacterEncoding());
 System.out.println(getP_vorname());

here are the results

Firefox:
UTF-8
Gülchan

IE:
UTF-8
G?lchan


seems that IE reconizes the utf-8 encryption but uses ISO one for the formular textfield. firefox does not have this problem.
any suggestion?

(this problem: https://issues.apache.org/struts/browse/STR-2100 seems to be very simmilar and occured in struts1. any suggestion how to fix it in struts2?)

      was (Author: lpaetzold):
    i got on the idea to use 
System.out.println(request.getCharacterEncoding());
 System.out.println(getP_vorname());

here are the results

Firefox:
UTF-8
Gülchan

IE:
UTF-8
G?lchan


seems that IE reconizes the utf-8 encryption but uses ISO one for the formular textfield. firefox does not have this problem.
any suggestion?
  
> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Commented: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43087#action_43087 ] 

Ted Husted commented on WW-2455:
--------------------------------

You could also bring this directly to the dev list, to get more feedback. More people watch the main list then the issues list, and seems like something we should fix. 


> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>             Fix For: 2.1.1
>
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Updated: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Lars Paetzold (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Paetzold updated WW-2455:
------------------------------


i got on the idea to use 
System.out.println(request.getCharacterEncoding());
 System.out.println(getP_vorname());

here are the results

Firefox:
UTF-8
Gülchan

IE:
UTF-8
G?lchan&nbsp;


seems that IE reconizes the utf-8 encryption but uses ISO one for the formular textfield. firefox does not have this problem.
any suggestion?

> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Issue Comment Edited: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Lars Paetzold (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43085#action_43085 ] 

lpaetzold edited comment on WW-2455 at 1/24/08 2:11 AM:
------------------------------------------------------------

i got on the idea to use 
System.out.println(request.getCharacterEncoding());
 System.out.println(getP_vorname());

here are the results

Firefox:
UTF-8
Gülchan

IE:
UTF-8
G?lchan


seems that IE reconizes the utf-8 encryption but uses ISO one for the formular textfield. firefox does not have this problem.
any suggestion?

      was (Author: lpaetzold):
    i got on the idea to use 
System.out.println(request.getCharacterEncoding());
 System.out.println(getP_vorname());

here are the results

Firefox:
UTF-8
Gülchan

IE:
UTF-8
G?lchan&nbsp;


seems that IE reconizes the utf-8 encryption but uses ISO one for the formular textfield. firefox does not have this problem.
any suggestion?
  
> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Updated: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2455:
--------------------------

    Fix Version/s:     (was: 2.1.1)
                   2.1.x

Hmm...I'm not sure if this is a Struts issue or what, but moving to 2.1.x since it needs more discussion/investigation.

> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>             Fix For: 2.1.x
>
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Resolved: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-2455.
---------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.1.3)

I'm not convinced there is anything Struts is doing wrong here, as it seems to be an issue with IE and how you are configuring the form tag.  If you can point to something that we should be doing different, please reopen.

> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Updated: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2455:
--------------------------

    Fix Version/s:     (was: 2.1.x)
                   2.1.3

> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>             Fix For: 2.1.3
>
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Updated: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Lars Paetzold (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Paetzold updated WW-2455:
------------------------------


i gave it another try and got deeper into the problem:

Firefox works very fine, but IE only crashes and throws the exception when acceptcharset="utf-8" ist there in combination with multipart form-data.. if there is acceptcharset="utf-8" or multipart-/form-data standalone. everythink works as well in IE. but  both form attributes together lead to the exception.

> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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


[jira] Commented: (WW-2455) form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43185#action_43185 ] 

Wes Wannemacher commented on WW-2455:
-------------------------------------

Lars, out of curiousity, what do you have IE setup to display? If you click, View -> Encoding (IIRC?) is it set to auto-select? If so, does it work if you change it to utf-8? Does it make a difference if you have the page contentType charset match case with the others (You're using UTF-8 for the page contentType charset and utf-8 for s:form and META)?

> form enctype="multipart/form-data" with elements text / file causes SQL Exception / works fine in firefox
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2455
>                 URL: https://issues.apache.org/struts/browse/WW-2455
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: Suse 9.11, x64, 4 GB Ram
>            Reporter: Lars Paetzold
>             Fix For: 2.1.1
>
>
> We got the following form-element:
> <s:form action="HR_Personal_add" method="post" cssClass="Personal_bearbeiten" enctype="multipart/form-data" acceptcharset="utf-8">
> ...
> <s:textfield label="Vorname" name="p_vorname" required="true" />
> <s:textfield label="Nachname" name="p_nachname" required="true" />
> <s:file label="Foto" name="p_bild" />
> ..
> </s:form>
> and the header-elements:
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <html>
> <head>
> ...
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
> ...
> </head>
> Trying the values:
> p_vorname = Özgün
> p_nachname = Ipslü
> p_bild = somefile.jpg
> if the form has been submitted, everything works fine in Firefox 2.x and the employyee will be put into the database through hibernate support.
> when now submitting the same form with the same values with internet explorer 6.028 an exception occurs:
> java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBDzi' for column 'vorname' at row 1
> i think this might be a problem with processing the utf-8 values / internet explorer compatibility. hibernate is set up properly and works fine with utf-8 support.
> the problem only occurs in the combination of utf-8 text values and the multipart/form-data statement. if multipart/form-data is left out everythink works fine, so i assume it's not hibernate.

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