TextSerializer ignores OutputFormat.encoding when created by 
SerializerFactoryImpl(Method.TEXT).makeSerializer(OutputStream, OutputFormat)
------------------------------------------------------------------------------------------------------------------------------------------

         Key: XERCESJ-1166
         URL: http://issues.apache.org/jira/browse/XERCESJ-1166
     Project: Xerces2-J
        Type: Bug

  Components: Serialization  
    Versions: 2.8.0    
    Reporter: Ivan Tarapcik


1. Get factory by call to SerializerFactory.getSerializerFactory(Method.TEXT)
2. Get serializer by call to factory.makeSerializer(OutputStream, OutputFormat)
3. document is serialized to UTF-8 regardles to OutputFormat setting.

The bug is either in 
a. SerializerFactoryImpl.getSerializer(), which creates new TextSerializer(), 
without specifying OutputFormat
b. SerializerFactoryImpl.makeSerializer(OutputStream, OutputFormat) - which 
does not call serialize.setOutputFormat() (while makeSerializer(OutputFormat) 
does).

Tested on 2.7.1 and 2.8.0

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to