You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by souravm <so...@infosys.com> on 2003/10/29 04:44:10 UTC

Problem in uploading a file having Japanese characters in its name through Struts (1.0) Multipart Upload component through Netscape browser.

Hi All,

I'm facing an issue in uploading a file having Japanese characters in
its name through Struts (1.0) Multipart Upload component.

My environment is - 
1. Apache 2.x Web Server running on Solaris.
2. Weblogic 8.1 application server running on Solaris.

After seeing the code of MultipartIterator class of Struts Multipart
Upload component I found it is using ISO-8859-1 (which is hard coded) as
encoding for characters. However, my application's encoding is EUC-JP.
Hence in my form bean I converted the strings from ISO-8859-1 to EUC-JP
as -

String outputString = new String ((inputString.getBytes("ISO-8859-1")),
"EUC_JP");

Here, inputString is the string obtained from Multipart Upload
component.

This approach works fine for all text string associated in my multipart
upload, even for the file name when I use IE as browser.

However, if I use Netscape as browser, it works well for all text
strings associated with my multipart upload, except for the file name.

Can anyone please suggest me what could be the problem and the solution
?

Thanks in advance,

Regards,
Sourav

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