我在Windows命令提示符下使用Ghostcript 9.20。 Ghostscript應從文件中讀取文件名,儘管一些文件對於例如文件有「Umlaute」。 üäö這樣用文件名「Jürgen1.pdf」 「Jürgen2.pdf」。但是Ghostscript 9.20會吞下變音符號,並且無法用Umlaute讀取文件名。我究竟做錯了什麼?ghostscript輸入從CMD中的文件讀取具有umlaute的文件名
chcp 1252
set file_output=Jürgen_merged
dir "Jürgen*.pdf" /b /o:n > files.txt
"C:\Program Files (x86)\Gawk\gawk4.1\gawk" "{ print \"\042\" $0 \"\042\" }" files.txt > files.lst
"C:\Program Files (x86)\gs\gs9.20\bin\gswin64c" -sPAPERSIZE=a4 -sDEVICE=pdfwrite -o "%file_output%.pdf" @files.lst
del files.lst
它應該工作,我建議你打開一個文件,顯示問題的錯誤報告。只有一個文件和一個簡單的命令行,請不要使用腳本。 – KenS
[Windows命令提示符不是* DOS提示符!](https://scalibq.wordpress.com/2012/05/23/the-windows-command-prompt-is-not-a-dos-prompt/ ) – aschipfl
我試圖使用此iconv -f WINDOWS-1252 -t UTF-8 files.txt> files.lst將@ files.lst轉換爲UTF8,但它仍然無法工作或吞下變音符號。 – sdf