Bug 383274

Summary: failure printing via CUPS when document name contains non-ASCII characters
Product: [Applications] okular Reporter: ralfixx
Component: printingAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aacid
Priority: NOR    
Version: 0.26.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description ralfixx 2017-08-08 13:17:36 UTC
OS Opensuse 42.2 Leap, latest patches applied.
  rpm -q --whatprovides /usr/bin/okular
  okular-16.08.2-1.1.x86_64

  okular --version
  Qt: 4.8.6
  KDE Development Platform: 4.14.25
  Okular: 0.26.1

When a PDF document contains Umlauts in the print job name, printing via CUPS fails with an error message in /var/log/cups/error_log:

Create-Job client-error-attributes-or-values-not-supported: Bad job-name value: "job-name": Bad name value "Allgemeine Geschäftsbedingungen für den elektronischen Geschäftsverkehr" - bad UTF-8 sequence (RFC 2911 section 4.1.2).
[Client 18] Returning IPP client-error-attributes-or-values-not-supported for Create-Job (ipp://localhost:631/printers/kopierer) from localhost

The problem seems to be that the Umlauts in there are not UTF-8 encoded.
Since I have no control over the job name (filename is e.g. x.pdf)

Printing the same document via e.g. evince succeeds:
[Job 51] job-name="51 - Allgemeine Geschäftsbedingungen für den elektronischen Geschäftsverkehr"

Here the Umlauts seem to be properly UTF-8 encoded.
Comment 1 Albert Astals Cid 2017-08-08 20:15:38 UTC

*** This bug has been marked as a duplicate of bug 364809 ***