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

Sergey B. commented on FELIX-5345:
----------------------------------

Nothing has changed. Please, note that properties file format allows only 
ISO8859-1 encoding. 
https://docs.oracle.com/javase/6/docs/api/java/util/Properties.html

The issue was not in that encoding is platform-dependent, but that it was other 
than ISO8859-1.

If one uses method store(OutputStream), class Properties makes character 
escaping. When the method store(Writer) it is the responsibility of user.

> Incorrect encoding in metatype props file
> -----------------------------------------
>
>                 Key: FELIX-5345
>                 URL: https://issues.apache.org/jira/browse/FELIX-5345
>             Project: Felix
>          Issue Type: Bug
>          Components: SCR Tooling
>    Affects Versions: scr generator 1.8.0
>            Reporter: Sergey B.
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin 1.23.0, scr ant task 1.16.0, scr 
> generator 1.15.0
>
>         Attachments: MetaTypeIO.patch, pom.xml
>
>
> maven-scr-plugin generates metatype properties file in incorrect encoding.
> Steps to reproduce:
> 1. Create component with non-ascii label
> {code:java}
> import org.apache.felix.scr.annotations.Component;
> @Component(
>     metatype = true,
>     label = "Какие-то буквы",
>     description = "Какие-то буквы")
> public class Reproduce {
>     //
> }
> {code}
> 2. Make bundle using maven-scr-plugin 1.14 or higher
> 3. Deploy to Apache Felix
> 4. Go to configuration page of Felix Web Console
> Expected result
> 1. There is component with correct name
> Actual
> 1. Component name is scrumbled



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to