Jump to content

feko

Members
  • Posts

    3
  • Joined

  • Last visited

feko's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi Matt, Thanks for your hints - in fact, I had already figured this out. I realize I was completely on the wrong track before :-) Anyway, I fixed this by converting the files using the Maven plugin org.codehaus.mojo:native2ascii-maven-plugin. I attached a sample config in case anyone using Maven has the same problem. Thanks, Felix Code:<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>native2ascii-maven-plugin</artifactId> <executions> <execution> <id>i18n</id> <goals> <goal>native2ascii</goal> </goals> <configuration> <dest>${project.build.directory}/classes</dest> <encoding>UTF8</encoding> <includes>i18_utf8*.properties</includes> <src>${basedir}/src/main/resources</src> </configuration> </execution> </executions></plugin>
  2. Hi Giulio, This answers my question. Unfortunately this means that I cannot use the same i18n resources for the whole project. Standard resource bundles for reporting, flat UTF-8 for the ZK UI, snif... Thanks a lot anyway, Felix
  3. Hi, I have a problem with special characters in a UTF-8-encoded i18n file. I've checked the forums but haven't found any post about exactly the same problem. Here's the problem: If I enter special characters directly in the report designer/jrxml file, they show up correctly in the output (internal viewer and PDF). When using the msg function or a $R reference, the output is garbled. It does work if I encode the properties file in ANSI. Unfortunately, this is unacceptable as I need to re-use an existing file from another application which expects UTF-8. I've created a simple report file to illustrate the issue (attached) with two properties files (i18n.properties and i18n_fr.properties with a single property "title") in the same folder as the jrxml file. The french translations do get picked up correctly but special characters in them are displayed incorrectly. The same thing happens on Windows (Vista) and Mac OS 10.5 using Java 6. What am I doing wrong? Thanks, Felix
×
×
  • Create New...