You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2004/12/16 17:09:40 UTC

[jira] Updated: (XALANJ-1621) Wrong encoding with redirect:write in xsltc

     [ http://nagoya.apache.org/jira/browse/XALANJ-1621?page=history ]

Henry Zongaro updated XALANJ-1621:
----------------------------------

    Priority: Major

> Wrong encoding with redirect:write in xsltc
> -------------------------------------------
>
>          Key: XALANJ-1621
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1621
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: CurrentCVS
>  Environment: Operating System: All
> Platform: All
>     Reporter: Franz Fackelmann
>     Assignee: Xalan Developers Mailing List

>
> When using redirect:write with translets made by XSLTC (Xalan-J 2.5.1) the
> output is in the wrong encoding. Instead of the encoding specified in the
> xslt:output element the output is in the default OS encoding. The following
> patch should fix the problem (class
> org.apache.xalan.xsltc.runtime.AbstractTranslet):
> 68c68,76
> < import java.io.FileWriter;
> ---
> > import java.io.File;
> > import java.io.FileOutputStream;
> > import java.io.OutputStream;
> > 
> > import java.io.Writer;
> > import java.io.OutputStreamWriter;
> > import java.io.BufferedWriter;
> > import java.io.FileOutputStream;
> > 
> 486c494,495
> < 	    factory.setWriter(new FileWriter(filename, append));
> ---
> > 	    FileOutputStream fs = new FileOutputStream (filename, append);
> > 	    factory.setWriter(new BufferedWriter(new OutputStreamWriter(fs, _encoding)));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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