[jira] [Commented] (FOP-2365) pdf's name contains chinese character
[ https://issues.apache.org/jira/browse/FOP-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969307#comment-13969307 ] Pascal Sancho commented on FOP-2365: Hi, I'm pretty sure that the cause is how File system handle filenames. Not all FS used by Windows support UTF8 filenames (Cf. [1]). Another cause could be the codepage used by the Windows shell. Another thing: I guess you are calling fop.bat from Java app; it's not a common way to run FOP from Java... it would be benefit to directly embed FOP calls in your app (see [2]), so you will not be facing to Shell limitations. I expect some feedback before I close this issue as Invalid. [1] http://msdn.microsoft.com/en-us/library/windows/desktop/dd317748%28v=vs.85%29.aspx [2] http://xmlgraphics.apache.org/fop/1.0/embedding.html pdf's name contains chinese character - Key: FOP-2365 URL: https://issues.apache.org/jira/browse/FOP-2365 Project: Fop Issue Type: Bug Components: pdf Affects Versions: 1.0 Environment: Windows 7 Ultimate 64bit Reporter: zhangcui use fop1.0,i create a pdf,if the pdf's name contains chinese character,it will fail. but use the same code,if the server OS is windows 2008 JP,it works fine. my server OS is windows 7 ultimate JP. ListString cmdList = new ArrayListString(); cmdList.add(fop.bat); cmdList.add(c:\\logfile.log); cmdList.add(-xsl); cmdList.add(c:\\myxsl.xsl); cmdList.add(-param); cmdList.add(pp); cmdList.add(c:\\param.txt); cmdList.add(-xml); cmdList.add(c:\\myxml.xml); cmdList.add(-pdf); cmdList.add(c:\\mypdf.pdf); ProcessBuilder pb = new ProcessBuilder(command); p = pb.start(); sorry for my english... -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2365) pdf's name contains chinese character
[ https://issues.apache.org/jira/browse/FOP-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969376#comment-13969376 ] zhangcui commented on FOP-2365: --- Hi,Pascal Sancho Thanks for your response. Windows 7 Ultimate 64bit and windows 2008 JP have the same FS,NTFS. And i generate a UTF8 file by new File() on Windows 7 Ultimate 64bit,so i can say it support UTF8,right? Another cause could be the codepage used by the Windows shell. -means change regedit.exe's HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun to @chcp 65001? i changed it,not work Is there any other possible reasons? pdf's name contains chinese character - Key: FOP-2365 URL: https://issues.apache.org/jira/browse/FOP-2365 Project: Fop Issue Type: Bug Components: pdf Affects Versions: 1.0 Environment: Windows 7 Ultimate 64bit Reporter: zhangcui use fop1.0,i create a pdf,if the pdf's name contains chinese character,it will fail. but use the same code,if the server OS is windows 2008 JP,it works fine. my server OS is windows 7 ultimate JP. ListString cmdList = new ArrayListString(); cmdList.add(fop.bat); cmdList.add(c:\\logfile.log); cmdList.add(-xsl); cmdList.add(c:\\myxsl.xsl); cmdList.add(-param); cmdList.add(pp); cmdList.add(c:\\param.txt); cmdList.add(-xml); cmdList.add(c:\\myxml.xml); cmdList.add(-pdf); cmdList.add(c:\\mypdf.pdf); ProcessBuilder pb = new ProcessBuilder(command); p = pb.start(); sorry for my english... -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (FOP-2365) pdf's name contains chinese character
[ https://issues.apache.org/jira/browse/FOP-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13969398#comment-13969398 ] Pascal Sancho commented on FOP-2365: After changing codepage, you should restart Windows and check in a shell environment that your change is effective. Guessing you are invoking fop.bat through a java process: JVM config can differ between your 2 machines, including java version. Perhaps the ProcessBuilder() contructor set some default values Or maybe a Windows bugfix... Or... googleing: http://www.coderanch.com/t/279253/java-io/java/Unicode-cmd-parameters-main-args This seems to be definitively related to your machine configuration, in such case FOP has nothing to do with this issue. pdf's name contains chinese character - Key: FOP-2365 URL: https://issues.apache.org/jira/browse/FOP-2365 Project: Fop Issue Type: Bug Components: pdf Affects Versions: 1.0 Environment: Windows 7 Ultimate 64bit Reporter: zhangcui use fop1.0,i create a pdf,if the pdf's name contains chinese character,it will fail. but use the same code,if the server OS is windows 2008 JP,it works fine. my server OS is windows 7 ultimate JP. ListString cmdList = new ArrayListString(); cmdList.add(fop.bat); cmdList.add(c:\\logfile.log); cmdList.add(-xsl); cmdList.add(c:\\myxsl.xsl); cmdList.add(-param); cmdList.add(pp); cmdList.add(c:\\param.txt); cmdList.add(-xml); cmdList.add(c:\\myxml.xml); cmdList.add(-pdf); cmdList.add(c:\\mypdf.pdf); ProcessBuilder pb = new ProcessBuilder(command); p = pb.start(); sorry for my english... -- This message was sent by Atlassian JIRA (v6.2#6252)