reassign 881117 hplip-data reassign 879115 hplip-data merge 879115 881117 818469 thanks
Brian - thank you for your report. On Tue 07 Nov 2017 at 23:42:19 +0100, Brian Oney wrote: > Package: hplip > Version: 3.16.11+repack0-3 > > Package: evince > Version: 3.22.1-3+deb9u1 > > Dear Debian Developers, > I can't print a pdf with a title that has a non-ascii character (possibly) > with evince. It looks like evince's handling of the pdf (ps conversion?) > seems to cause it. qpdfviewer works just find. lp also works fine. The cups > error log is appended but the important bit is: > D [07/Nov/2017:23:17:25 +0100] [Job 114] os.write(output_fd, > to_bytes_utf8(\'@PJL SET JOBNAME=\"%s\"\\x0a\' % title))D > [07/Nov/2017:23:17:25 +0100] [Job 114] File > \"/usr/share/hplip/base/sixext.py\", line 109, in to_bytes_utf8D > [07/Nov/2017:23:17:25 +0100] [Job 114] return s.encode(\"utf-8\")D > [07/Nov/2017:23:17:25 +0100] [Job 114] UnicodeEncodeError: \'utf-8\' codec > can\'t encode character \'\\udcc3\' in position 21: surrogates not allowed > It looks the pdf 'Title:' may not contain an รค (or the like). > I guess it has to be evince, but it also appears that hplip could better > handle pdf metadata. > Thanks!Brian [Snip] > You could try the suggested fixes in #818469 and #879115. Regards, Brian.