I've found an odd behavior with Prince and I'm not sure if it's a bug or not. It seems that passing UTF-8 encoded files to prince through a unix pipe is broken in some way and the data is not be read properly.
I have a test file "test.html" which is a utf-8 encoded file containing non latin (in this case Chinese) characters. I have the requisite fonts installed to generate the proper characters in the output.
running it like this:
prince --input=html -v --debug -i test.html -o test.pdf
works fine and produces the proper output PDF. However if I pipe utf-8 into prince like so:
cat test.html | prince -v --debug --input=html - -o test.pdf
- or -
prince -v --debug --input=html - -o test.pdf < test.html
I get a garbled / mangled file with lots of "no glyphs for character" messages.
I am trying to use a perl process with pipes to pass utf-8 data into prince and I've been getting garbled data. I thought it was my perl app until I found that directly piping data into prince on the command line seems to be broken as well.
Is there something I need to do to enable this, a hidden command line option or something? Is utf piped into the prince process not supported?
Thanks!
-Mike
Using: Linux ubuntu dapper, Intel x86
I have a test file "test.html" which is a utf-8 encoded file containing non latin (in this case Chinese) characters. I have the requisite fonts installed to generate the proper characters in the output.
running it like this:
prince --input=html -v --debug -i test.html -o test.pdf
works fine and produces the proper output PDF. However if I pipe utf-8 into prince like so:
cat test.html | prince -v --debug --input=html - -o test.pdf
- or -
prince -v --debug --input=html - -o test.pdf < test.html
I get a garbled / mangled file with lots of "no glyphs for character" messages.
I am trying to use a perl process with pipes to pass utf-8 data into prince and I've been getting garbled data. I thought it was my perl app until I found that directly piping data into prince on the command line seems to be broken as well.
Is there something I need to do to enable this, a hidden command line option or something? Is utf piped into the prince process not supported?
Thanks!
-Mike
Using: Linux ubuntu dapper, Intel x86