You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2007/10/22 22:16:51 UTC

[jira] Resolved: (WSCOMMONS-260) Invalid XML after serialization

     [ https://issues.apache.org/jira/browse/WSCOMMONS-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ajith Harshana Ranabahu resolved WSCOMMONS-260.
-----------------------------------------------

    Resolution: Fixed
      Assignee: Ajith Harshana Ranabahu

Test case added along with an xsd having japanese characters. Please test your specific case and reopen the issue if necessary

> Invalid XML after serialization
> -------------------------------
>
>                 Key: WSCOMMONS-260
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-260
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>         Environment: any
>            Reporter: Grzegorz Grzybek
>            Assignee: Ajith Harshana Ranabahu
>            Priority: Critical
>
> org.apache.ws.commons.schema.XmlSchema.write() methods use wrong wersion of OutputStreamWriter constructor. When Schema's XML Document contains characters outside standard 'us-ascii' charset, OutputStreamWriter assumes default platform encoding (e.g. Windows-1250 in Windows/Poland). Thus, when document is UTF-8, it is being serialized in Windows-1250 encoding.
> The immediate result is error during "pretty printing" of the serialized document.
> Please use OutputStreamWriter(OutputStream os, String encoding) constructor!!!
> with best regards
> Grzegorz Grzybek

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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