Skip to content

[MSHARED-980] Xpp3DomBuilder does not handle XML encoding per spec #295

@jira-importer

Description

@jira-importer

Elliotte Rusty Harold opened MSHARED-980 and commented

Properly handled, there is never any need to specify the character encoding when reading an XML document. XML documents fully identify their character encoding. The developer at this level doesn't need to know and shouldn't think about the character encoding.

 

That is, these methods are wrong:

 


public static Xpp3Dom build( @WillClose InputStream is, @Nonnull String encoding )

public static Xpp3Dom build( @WillClose InputStream is, @Nonnull String encoding, boolean trim )

 

There should be no encoding argument. Instead the XML should be read from an InputStream without converting it to a reader first. Let the XML parser detect the encoding.

 

 


No further details from MSHARED-980

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions