non-ASCII characters in --producer metadata field breaks app #145
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
in img2pdf version 0.4.0, Debian stable, if you try to use characters with accents in the --producer field, the app throws an error:
QUOTE
ERROR:root:error: 'ascii' codec can't encode character '\xf4' in position 4: ordinal not in range(128)
UNQUOTE
all other metadata fields work ok.
sample command:
img2pdf -s 300dpi image.jpg -o test.pdf --title "Râdio" --creator "Maëstro" --author "José" --producer "No unicode here or else it breaks" --keywords "touché"
thank you for your bug report!
unfortunately I'm unable to reproduce your problem on debian stable. the error you cite sounds like a python2 error but img2pdf in debian stable uses python3.
are you sure that you are using the packaged img2pdf and that you do not have any other python installation around like from pypi or similar?
for example, can you paste the output of this command:
and if that says python3, try running the command you showed above with
/usr/bin/img2pdf
instead ofimg2pdf
and see if that works, thanks!Hi @Ghost can you give more input? Since I cannot reproduce your issue I cannot further assust you without your help.
Since there were no further replies, I'm going to close this. Reopen if there is any further input on this problem.