You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Jim Bonanno (JIRA)" <ji...@apache.org> on 2008/05/09 13:26:55 UTC

[jira] Created: (IVY-816) Report encoding should be UTF-8

Report encoding should be UTF-8
-------------------------------

                 Key: IVY-816
                 URL: https://issues.apache.org/jira/browse/IVY-816
             Project: Ivy
          Issue Type: Improvement
          Components: Core
    Affects Versions: 2.0.0-beta-2, 2.0.0-beta-1
            Reporter: Jim Bonanno


The xsd for ivy specifies xs:string for the values of module and organisation, so non 8859 characters are supported.
		            <xs:attribute name="organisation" type="xs:string" use="required"/>
		            <xs:attribute name="module" type="xs:string" use="required"/>

But currently the ivy report is written with xml encoding 8859.

        out.println("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
        out.println("<?xml-stylesheet type=\"text/xsl\" href=\"ivy-report.xsl\"?>");

If the encoding written from XmlReportWriter was changed to UTF-8 then the report could display dbcs characters.



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


[jira] Updated: (IVY-816) Report encoding is incorrect

Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Scokart updated IVY-816:
-------------------------------

    Issue Type: Bug  (was: Improvement)
       Summary: Report encoding is incorrect  (was: Report encoding should be UTF-8)

It is indeed a bug.  If the local default encoding is not ISO-Latin-1 the produced XML is either not correct ("special characters are not correctly encoded) or even invalid.

> Report encoding is incorrect
> ----------------------------
>
>                 Key: IVY-816
>                 URL: https://issues.apache.org/jira/browse/IVY-816
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>            Reporter: Jim Bonanno
>            Assignee: Gilles Scokart
>
> The xsd for ivy specifies xs:string for the values of module and organisation, so non 8859 characters are supported.
> 		            <xs:attribute name="organisation" type="xs:string" use="required"/>
> 		            <xs:attribute name="module" type="xs:string" use="required"/>
> But currently the ivy report is written with xml encoding 8859.
>         out.println("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
>         out.println("<?xml-stylesheet type=\"text/xsl\" href=\"ivy-report.xsl\"?>");
> If the encoding written from XmlReportWriter was changed to UTF-8 then the report could display dbcs characters.

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


[jira] Commented: (IVY-816) Report encoding should be UTF-8

Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600091#action_12600091 ] 

Gilles Scokart commented on IVY-816:
------------------------------------

I think there is actually more than an improvement.  I think there is a bug there.

We are indeed writing using the default platform encoding, but saying in the xml that it is Iso-Latin-1.  If your default encoding is for instance UTF-8 or UTF-16, the produced xml might be invalid. (if the second byte of a character would be read in iso-latin a '<' or a '&' for instance).

> Report encoding should be UTF-8
> -------------------------------
>
>                 Key: IVY-816
>                 URL: https://issues.apache.org/jira/browse/IVY-816
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>            Reporter: Jim Bonanno
>            Assignee: Gilles Scokart
>
> The xsd for ivy specifies xs:string for the values of module and organisation, so non 8859 characters are supported.
> 		            <xs:attribute name="organisation" type="xs:string" use="required"/>
> 		            <xs:attribute name="module" type="xs:string" use="required"/>
> But currently the ivy report is written with xml encoding 8859.
>         out.println("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
>         out.println("<?xml-stylesheet type=\"text/xsl\" href=\"ivy-report.xsl\"?>");
> If the encoding written from XmlReportWriter was changed to UTF-8 then the report could display dbcs characters.

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


[jira] Resolved: (IVY-816) Report encoding is incorrect

Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Scokart resolved IVY-816.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-RC1

> Report encoding is incorrect
> ----------------------------
>
>                 Key: IVY-816
>                 URL: https://issues.apache.org/jira/browse/IVY-816
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>            Reporter: Jim Bonanno
>            Assignee: Gilles Scokart
>             Fix For: 2.0-RC1
>
>
> The xsd for ivy specifies xs:string for the values of module and organisation, so non 8859 characters are supported.
> 		            <xs:attribute name="organisation" type="xs:string" use="required"/>
> 		            <xs:attribute name="module" type="xs:string" use="required"/>
> But currently the ivy report is written with xml encoding 8859.
>         out.println("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
>         out.println("<?xml-stylesheet type=\"text/xsl\" href=\"ivy-report.xsl\"?>");
> If the encoding written from XmlReportWriter was changed to UTF-8 then the report could display dbcs characters.

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


[jira] Assigned: (IVY-816) Report encoding should be UTF-8

Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Scokart reassigned IVY-816:
----------------------------------

    Assignee: Gilles Scokart

> Report encoding should be UTF-8
> -------------------------------
>
>                 Key: IVY-816
>                 URL: https://issues.apache.org/jira/browse/IVY-816
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>            Reporter: Jim Bonanno
>            Assignee: Gilles Scokart
>
> The xsd for ivy specifies xs:string for the values of module and organisation, so non 8859 characters are supported.
> 		            <xs:attribute name="organisation" type="xs:string" use="required"/>
> 		            <xs:attribute name="module" type="xs:string" use="required"/>
> But currently the ivy report is written with xml encoding 8859.
>         out.println("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
>         out.println("<?xml-stylesheet type=\"text/xsl\" href=\"ivy-report.xsl\"?>");
> If the encoding written from XmlReportWriter was changed to UTF-8 then the report could display dbcs characters.

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