xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39181] New: - File() writes file with %20" (percent twenty) in filename
Date Sun, 02 Apr 2006 15:42:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39181>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39181

           Summary: File() writes file with %20" (percent twenty) in
                    filename
           Product: XmlCommons
           Version: 1.x
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P5
         Component: SAX
        AssignedTo: commons-dev@xml.apache.org
        ReportedBy: laklare@ml1.net


In the following code, if the target string variable contains a space, the name
of the file produced will contain "%20" (percent twenty) instead of a space. 
I'm using jdk1.5.0_06.  This was originally reported under FOP
(http://issues.apache.org/bugzilla/show_bug.cgi?id=39030).

TransformerFactory factory = TransformerFactory.newInstance();
        Transformer transformer = factory.newTransformer();
        transformer.transform(
                new javax.xml.transform.dom.DOMSource(doc),
                new javax.xml.transform.stream.StreamResult(new File(target)));

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message