#6 Command Line use with XML file

open
nobody
None
5
2012-10-08
2009-10-13
Anonymous
No

I've built a script that scans a folder for PDF files and then creates an XML file in the ofrmat indicated in the documentation, complete with the <?xml> header etc.

The file is well-formed, and uses only the tags indicated in the documentation. When I pass the file as an argument to pdfmerge.exe on teh command line, I get a dialog box:

"There is no Unicode byte order mark. Cannot switch to Unicode."

I'd use the old-style command file format, except that I have unicode filenames.

PdfMerge version 1.19.3361.21520

Any ideas?

Discussion

  • Followup.
    Took a close look at the file I'd created via a shell script - by default, of course, it doesn't matter that the encoding was UTF-16, the file itself was in ASCII. I resolved the problem by filtering the existing file thru' ICONV to create a 'proper' UTF-16 file.

    One consideration is that most parsers are a bit forgiving of files that are passed in as UTF-8 claiming to be UTF-16.