0 Replies Latest reply on Oct 28, 2008 6:29 PM by mikeschulze

    Resource-Bundles and UTF-8

    mikeschulze

      Hi,


      I am using the Seam-ResourceLoader and want to inject a property directly into my java-code, as it is described in the seam-reference (15.3.2 - Seam Reference 2.0.2SP1) - but UTF-8 statements are not interpreted right. My intranetResources.property-file is located in the War/WEB-INF/classes folder an looks like this:


      ...
      propDealerRole = SFDE-H\u00E4ndler
      ...



      my components.xml:



      <core:resource-loader>
           <core:bundle-names>
           <value>ejbResources</value>
           <value>intranetResources</value>
           </core:bundle-names>
       </core:resource-loader>




      this is the way I retrieve the value of the property in my code:


      @In(value = "#{messages.propDealerRole}")
       private static String dealerRoleName;




      but when i log this out I get a wrong value:



      SFDE-Händler




      On the other hand - if I run a SeamTest - i get the right value.

      I start my JBoss with those arguments:



      -Dfile.encoding=UTF-8



      I am using JBoss Seam 2.0.2 on an JBoss AS 4.2.2 and Windwos XP



      Thx - Mike