You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org> on 2007/11/16 10:25:43 UTC
[jira] Created: (TOBAGO-540) Incorrect character set conversion in
file upload
Incorrect character set conversion in file upload
-------------------------------------------------
Key: TOBAGO-540
URL: https://issues.apache.org/jira/browse/TOBAGO-540
Project: MyFaces Tobago
Issue Type: Bug
Affects Versions: 1.0.12, 1.0.13
Environment: Windows (Linux?)
Reporter: Helmut Swaczinna
Priority: Minor
When you upload a file with the tc:file tag with umlauts in the filename the umlauts are not converted
correctly when you request the filename with FileItem.getName().
For example ü is converted to ü.
I use utf-8 in my pages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-540) Incorrect character set conversion
in file upload
Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543525 ]
Helmut Swaczinna commented on TOBAGO-540:
-----------------------------------------
I've added -Dfile.encoding=utf-8 to the Tomcat command line but with no effect.
To solve the problem I added this workaround to my code:
filename = new String(fileItem.getName().getBytes(), "utf-8");
> Incorrect character set conversion in file upload
> -------------------------------------------------
>
> Key: TOBAGO-540
> URL: https://issues.apache.org/jira/browse/TOBAGO-540
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.12, 1.0.13
> Environment: Windows (Linux?)
> Reporter: Helmut Swaczinna
> Priority: Minor
>
> When you upload a file with the tc:file tag with umlauts in the filename the umlauts are not converted
> correctly when you request the filename with FileItem.getName().
> For example ü is converted to ü.
> I use utf-8 in my pages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-540) Incorrect character set conversion
in file upload
Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543541 ]
Bernd Bohmann commented on TOBAGO-540:
--------------------------------------
My local version calls the setHeaderEncoding(FORM_ACCEPT_CHARSET) on fileUpload.
I will commit my changes. Can you test it without setting fie default file encoding.
> Incorrect character set conversion in file upload
> -------------------------------------------------
>
> Key: TOBAGO-540
> URL: https://issues.apache.org/jira/browse/TOBAGO-540
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.12, 1.0.13
> Environment: Windows (Linux?)
> Reporter: Helmut Swaczinna
> Priority: Minor
>
> When you upload a file with the tc:file tag with umlauts in the filename the umlauts are not converted
> correctly when you request the filename with FileItem.getName().
> For example ü is converted to ü.
> I use utf-8 in my pages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-540) Incorrect character set conversion
in file upload
Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543273 ]
Bernd Bohmann commented on TOBAGO-540:
--------------------------------------
My platform default file encoding is utf-8.
Can you set your default file encoding to utf-8 with -Dfile.encoding=utf-8
> Incorrect character set conversion in file upload
> -------------------------------------------------
>
> Key: TOBAGO-540
> URL: https://issues.apache.org/jira/browse/TOBAGO-540
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.12, 1.0.13
> Environment: Windows (Linux?)
> Reporter: Helmut Swaczinna
> Priority: Minor
>
> When you upload a file with the tc:file tag with umlauts in the filename the umlauts are not converted
> correctly when you request the filename with FileItem.getName().
> For example ü is converted to ü.
> I use utf-8 in my pages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-540) Incorrect character set conversion
in file upload
Posted by "Helmut Swaczinna (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543858 ]
Helmut Swaczinna commented on TOBAGO-540:
-----------------------------------------
I tried the current source from svn but with no effect.
Btw I use commons-fileupload-1.1.1.jar
> Incorrect character set conversion in file upload
> -------------------------------------------------
>
> Key: TOBAGO-540
> URL: https://issues.apache.org/jira/browse/TOBAGO-540
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.12, 1.0.13
> Environment: Windows (Linux?)
> Reporter: Helmut Swaczinna
> Assignee: Bernd Bohmann
> Priority: Minor
>
> When you upload a file with the tc:file tag with umlauts in the filename the umlauts are not converted
> correctly when you request the filename with FileItem.getName().
> For example ü is converted to ü.
> I use utf-8 in my pages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-540) Incorrect character set conversion
in file upload
Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543528 ]
Volker Weber commented on TOBAGO-540:
-------------------------------------
Hi,
I had the same problem here, and the same workaround.
I think this is a problem in commons-fileupload, i asked there on the maillinglist month ago[1], but got no response.
[1]: http://www.nabble.com/-fileupload--encoding-of-filename-tf4128884.html
> Incorrect character set conversion in file upload
> -------------------------------------------------
>
> Key: TOBAGO-540
> URL: https://issues.apache.org/jira/browse/TOBAGO-540
> Project: MyFaces Tobago
> Issue Type: Bug
> Affects Versions: 1.0.12, 1.0.13
> Environment: Windows (Linux?)
> Reporter: Helmut Swaczinna
> Priority: Minor
>
> When you upload a file with the tc:file tag with umlauts in the filename the umlauts are not converted
> correctly when you request the filename with FileItem.getName().
> For example ü is converted to ü.
> I use utf-8 in my pages.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.