You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/10/29 09:10:31 UTC
[jira] [Commented] (WICKET-5398) XmlPullParser fails to properly
parse from String with encoding declaration
[ https://issues.apache.org/jira/browse/WICKET-5398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13807765#comment-13807765 ]
Martin Grigorov commented on WICKET-5398:
-----------------------------------------
I believe this conversation is related - http://markmail.org/thread/4emvqzvcui6sojds
> XmlPullParser fails to properly parse from String with encoding declaration
> ---------------------------------------------------------------------------
>
> Key: WICKET-5398
> URL: https://issues.apache.org/jira/browse/WICKET-5398
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.0.0, 6.11.0
> Reporter: Sven Meier
> Assignee: Sven Meier
> Priority: Minor
>
> When parsing from a string, XmlPullParser fails if the encoding from the XML declaration is different than the system's file encoding.
> Examples:
> -Dfile.encoding=ISO-8859-1
> parser.parse("<?xml encoding='UTF-8' ?><span id='umlaut-äöü'></span>");
> -Dfile.encoding=UTF-8
> parser.parse("<?xml encoding='ISO-8859-1' ?><span id='umlaut-äöü'></span>");
> Both fail because the string is read with the system's file encoding while the parser expects the stream to be encoded in the declarated encoding.
--
This message was sent by Atlassian JIRA
(v6.1#6144)