felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1954) Possible charset problem with parsing of repository.xml
Date Thu, 25 Feb 2010 09:18:27 GMT

    [ https://issues.apache.org/jira/browse/FELIX-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838262#action_12838262
] 

Guillaume Nodet commented on FELIX-1954:
----------------------------------------

My bet is that kxml parser does not support encodings.
The new stax based parser should provide much better support for that, so you could try with
a recent  1.5.0-SNAPSHOT maybe.

> Possible charset problem with parsing of repository.xml
> -------------------------------------------------------
>
>                 Key: FELIX-1954
>                 URL: https://issues.apache.org/jira/browse/FELIX-1954
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.4.2
>         Environment: Gentoo Linux with system wide UTF-8 encoding. I think this means,
that the JVM uses UTF-8 as standard encoding.
>            Reporter: Henrik Niehaus
>            Priority: Minor
>
> I have noticed that the obr bundle doesn't respect the charset of the repository.xml
file:
> RepositoryImpl.java line 253 ff.
>                 br = new BufferedReader(new InputStreamReader(is));
>                 KXml2SAXParser parser;
>                 parser = new KXml2SAXParser(br);
>                 parser.parseXML(handler);
> In my repository.xml, I have german Umlaute and since my system runs with UTF-8 and the
repository.xml is latin1, I get decoding errors.
> In my opinion the repository.xml should be encoded in UTF-8 and the obr plugin should
be able to respect the file's charset.

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


Mime
View raw message