[jira] Created: (CONFIGURATION-303) PropertiesConfigurationLayout

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CONFIGURATION-303) PropertiesConfigurationLayout

JIRA jira@apache.org
PropertiesConfigurationLayout
------------------------------

                 Key: CONFIGURATION-303
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-303
             Project: Commons Configuration
          Issue Type: Bug
            Reporter: huhjinsuk


I use UTF8 property file.

private FileConfiguration config;
....
public testGetMessage() throws ConfigurationException {
 config.setEncoding("UTF-8");

  layout =   config.getLayout();
  System.out.println(config.getString(key));  // good.
  --> System.out.println(layout .getComment(comment)); //<---
}
I have a problem. It doen't work well.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CONFIGURATION-303) PropertiesConfigurationLayout

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/CONFIGURATION-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

huhjinsuk updated CONFIGURATION-303:
------------------------------------

    Description:
I use UTF8 property file.

private FileConfiguration config;
....
public testGetMessage() throws ConfigurationException {
 config.setEncoding("UTF-8");

  layout =   config.getLayout();
  System.out.println(config.getString(key));  // good.
  --> System.out.println(layout .getComment(comment)); //<---
}
I have a problem. It doesn't work well.

  was:
I use UTF8 property file.

private FileConfiguration config;
....
public testGetMessage() throws ConfigurationException {
 config.setEncoding("UTF-8");

  layout =   config.getLayout();
  System.out.println(config.getString(key));  // good.
  --> System.out.println(layout .getComment(comment)); //<---
}
I have a problem. It doen't work well.


> PropertiesConfigurationLayout
> ------------------------------
>
>                 Key: CONFIGURATION-303
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-303
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: huhjinsuk
>
> I use UTF8 property file.
> private FileConfiguration config;
> ....
> public testGetMessage() throws ConfigurationException {
>  config.setEncoding("UTF-8");
>   layout =   config.getLayout();
>   System.out.println(config.getString(key));  // good.
>   --> System.out.println(layout .getComment(comment)); //<---
> }
> I have a problem. It doesn't work well.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CONFIGURATION-303) PropertiesConfigurationLayout

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/CONFIGURATION-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

huhjinsuk updated CONFIGURATION-303:
------------------------------------

    Description:
I use UTF8 property file.

private FileConfiguration config;\\
....\\
public testGetMessage() throws ConfigurationException {\\
 config.setEncoding("UTF-8"); \\
\\
  layout =   config.getLayout();\\
  System.out.println(config.getString(key));  // good.\\
  --> System.out.println(layout .getComment(comment)); //<---\\
}\\
It doesn't work well. \\

  was:
I use UTF8 property file.

private FileConfiguration config;
....
public testGetMessage() throws ConfigurationException {
 config.setEncoding("UTF-8");

  layout =   config.getLayout();
  System.out.println(config.getString(key));  // good.
  --> System.out.println(layout .getComment(comment)); //<---
}
I have a problem. It doesn't work well.


> PropertiesConfigurationLayout
> ------------------------------
>
>                 Key: CONFIGURATION-303
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-303
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: huhjinsuk
>
> I use UTF8 property file.
> private FileConfiguration config;\\
> ....\\
> public testGetMessage() throws ConfigurationException {\\
>  config.setEncoding("UTF-8"); \\
> \\
>   layout =   config.getLayout();\\
>   System.out.println(config.getString(key));  // good.\\
>   --> System.out.println(layout .getComment(comment)); //<---\\
> }\\
> It doesn't work well. \\

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CONFIGURATION-303) PropertiesConfigurationLayout

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/CONFIGURATION-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

huhjinsuk updated CONFIGURATION-303:
------------------------------------

    Description:
I use UTF8 property file.

private FileConfiguration config;

....

public testGetMessage() throws ConfigurationException {

 config.setEncoding("UTF-8");

  layout =   config.getLayout();

  System.out.println(config.getString(key));  // good.

  --> System.out.println(layout .getComment(comment)); //<---

}

It doesn't work well.


  was:
I use UTF8 property file.

private FileConfiguration config;\\
....\\
public testGetMessage() throws ConfigurationException {\\
 config.setEncoding("UTF-8"); \\
\\
  layout =   config.getLayout();\\
  System.out.println(config.getString(key));  // good.\\
  --> System.out.println(layout .getComment(comment)); //<---\\
}\\
It doesn't work well. \\


> PropertiesConfigurationLayout
> ------------------------------
>
>                 Key: CONFIGURATION-303
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-303
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: huhjinsuk
>
> I use UTF8 property file.
> private FileConfiguration config;
> ....
> public testGetMessage() throws ConfigurationException {
>  config.setEncoding("UTF-8");
>   layout =   config.getLayout();
>   System.out.println(config.getString(key));  // good.
>   --> System.out.println(layout .getComment(comment)); //<---
> }
> It doesn't work well.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CONFIGURATION-303) PropertiesConfigurationLayout

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/CONFIGURATION-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

huhjinsuk updated CONFIGURATION-303:
------------------------------------

    Description:
I use UTF8 property file.

private FileConfiguration config;
....
public testGetMessage() throws ConfigurationException {
 config.setEncoding("UTF-8");
  layout =   config.getLayout();
  System.out.println(config.getString(key));  // good.
  System.out.println(layout .getComment(comment)); //<---
}}

It doesn't work well. [getComment]


  was:
I use UTF8 property file.

private FileConfiguration config;

....

public testGetMessage() throws ConfigurationException {

 config.setEncoding("UTF-8");

  layout =   config.getLayout();

  System.out.println(config.getString(key));  // good.

  --> System.out.println(layout .getComment(comment)); //<---

}

It doesn't work well.



> PropertiesConfigurationLayout
> ------------------------------
>
>                 Key: CONFIGURATION-303
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-303
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: huhjinsuk
>
> I use UTF8 property file.
> private FileConfiguration config;
> ....
> public testGetMessage() throws ConfigurationException {
>  config.setEncoding("UTF-8");
>   layout =   config.getLayout();
>   System.out.println(config.getString(key));  // good.
>   System.out.println(layout .getComment(comment)); //<---
> }}
> It doesn't work well. [getComment]

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CONFIGURATION-303) PropertiesConfigurationLayout

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/CONFIGURATION-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557965#action_12557965 ]

Oliver Heger commented on CONFIGURATION-303:
--------------------------------------------

Sorry, but from the title of this ticket and your problem description ("it doesn't work well") I have no idea what your concrete problem is.

Can you please be a bit more specific? It is probably also helpful if you attach the affected properties file, so we can do some tests.

Thanks.

> PropertiesConfigurationLayout
> ------------------------------
>
>                 Key: CONFIGURATION-303
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-303
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: huhjinsuk
>
> I use UTF8 property file.
> private FileConfiguration config;
> ....
> public testGetMessage() throws ConfigurationException {
>  config.setEncoding("UTF-8");
>   layout =   config.getLayout();
>   System.out.println(config.getString(key));  // good.
>   System.out.println(layout .getComment(comment)); //<---
> }}
> It doesn't work well. [getComment]

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CONFIGURATION-303) PropertiesConfigurationLayout

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/CONFIGURATION-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-303.
----------------------------------------

       Resolution: Invalid
    Fix Version/s: 1.6

Got no more feedback on this, so closing as invalid.

Please reopen if you can provide more information. We need at least
- a code fragment how your configuration object is created and initialized
- an excerpt from the properties file you are reading
- the code how you access the configuration
- the expected result
- the actual result


> PropertiesConfigurationLayout
> ------------------------------
>
>                 Key: CONFIGURATION-303
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-303
>             Project: Commons Configuration
>          Issue Type: Bug
>            Reporter: huhjinsuk
>             Fix For: 1.6
>
>
> I use UTF8 property file.
> private FileConfiguration config;
> ....
> public testGetMessage() throws ConfigurationException {
>  config.setEncoding("UTF-8");
>   layout =   config.getLayout();
>   System.out.println(config.getString(key));  // good.
>   System.out.println(layout .getComment(comment)); //<---
> }}
> It doesn't work well. [getComment]

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