You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/04 22:16:17 UTC
DO NOT REPLY [Bug 4375] -
Using a StringReader in the InputSource of stylesheet causes incorrect character encoding
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=4375>.
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=4375
Using a StringReader in the InputSource of stylesheet causes incorrect character encoding
garyp@firstech.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From garyp@firstech.com 2001-11-04 13:16 -------
The problem here is your output encoding. The copyright symbol in Unicode has
the value 0x00a9. To represent this in UTF-8, which is what you're asking for,
the unicode value is represented as 0xc2, 0xa9 which is exactly what you're
seeing. To get your expected results, change your xsl.output element to
encoding="ISO-8859-1"
and you'll get the results you're seeking.
BTW, it is generally not a good idea to use Readers as an input argument to the
StreamSource constructor because this interferes with XalanJ's ability to
handle the encoding properly. See the StreamSource constructor javadoc for
some (small) additional info.