You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2010/02/25 10:18:27 UTC

[jira] Commented: (FELIX-1954) Possible charset problem with parsing of repository.xml

    [ 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.