Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Output encoding given as UTF8 - ID: 481381
Last Update: Comment added ( mhkay )

When Saxon is called from Java, supplying a Writer to
receive the output, and the Writer is initialized with
encoding "utf-8", Saxon outputs an XML declaration at
the start of the file (even if none is requested)
specifying encoding="UTF8".

This happens because Saxon asks the Writer what the
encoding is, and writes this value to the output
document header. If the value is anything other than
utf-8, XML requires that the XML declaration be
present. However, the Java VM informs Saxon that the
encoding is "UTF8", even though the user
requested "UTF-8".

Source code fixed.


Michael Kay ( mhkay ) - 2001-11-13 18:10

5

Closed

Fixed

Michael Kay

JAXP Java API

v6.4.4

Public


Comment ( 1 )

Date: 2001-11-15 15:00
Sender: mhkayProject Admin

Logged In: YES
user_id=251681

Fixed in 6.5


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2001-11-15 15:00 mhkay
resolution_id None 2001-11-15 15:00 mhkay
close_date - 2001-11-15 15:00 mhkay