DO NOT REPLY [Bug 39181] New: - File() writes file with %20" (percent twenty) in filename

[email protected]
Newsgroups gmane.text.xml.commons.devel
Message-ID <[email protected]/bugzilla/>
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: [email protected]
        ReportedBy: [email protected]


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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.