You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/11/19 12:20:40 UTC

DO NOT REPLY [Bug 24820] New: - Encoding for file names not properly handled

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24820

Encoding for file names not properly handled

           Summary: Encoding for file names not properly handled
           Product: Struts
           Version: 1.1RC2
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: File Upload
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: lawrencem@image.net


When processing element.getFilename() the readLine method does not use the 
charset from the request. This means that on say winNt 
MultipartBoundaryInputStream:readLine line 625.
line = new String(this.line, 0, this.lineLength)
garbles a UTF-8 japanese filename by using default system encoding Cp1252.

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