lovetide Posted September 14, 2006 Share Posted September 14, 2006 I use a Simplified Chinese Windows Professional 2000 operating system, jdk1.5.0_08 installed, the default charset encoding is GBK.#Directory which I used to save my reports may contain Chinese characters, each time i start iReport, the "recent file" menu is empty. I opened recentFiles.xml and I found it's not encoded as it declared: UTF-8.#I checked the source code of iReport 1.2.6, in"it.businesslogic.ireport.gui.MainFrame", Line 8265, I found that when writing to XML file, string does not do some charset encoding conversion.#And, maybe there are some others case like this when writing other xml.##by the way: I edited "it.businesslogic.ireport.gui.MainFrame.java", Line 8265, change 'file' to 'new String(file.getBytes(), "UTF-8")'. I want to rebuild it, I got an exception:--------------------------------Code:BUILD FAILEDC:Program FilesJasperSoftiReport-1.2.6build.xml:146: Error building the jsmooth wrapper at net.charabia.jsmoothgen.ant.JSmoothGen.execute(JSmoothGen.java:97) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)Caused by: java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:336) at net.charabia.jsmoothgen.skeleton.SkeletonList.getDirectory(SkeletonList.java:107) at net.charabia.jsmoothgen.ant.JSmoothGen.execute(JSmoothGen.java:76) ... 12 more--- Nested Exception ---java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:336) at net.charabia.jsmoothgen.skeleton.SkeletonList.getDirectory(SkeletonList.java:107) at net.charabia.jsmoothgen.ant.JSmoothGen.execute(JSmoothGen.java:76) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)Total time: 7 secondsC:Program FilesJasperSoftiReport-1.2.6> Link to comment Share on other sites More sharing options...
lovetide Posted March 27, 2007 Author Share Posted March 27, 2007 This problem is still exists. If the file path or file name contains multibytes characters on a Windows system, the recent file menu will not shown the recent file list. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now