Bug 207749

Summary: Hebrew title appears as Gibberish
Product: [Applications] kaddressbook Reporter: Dotan Cohen <kde-2011.08>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: tokoe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed In:
Attachments: Screenshot illustrating problem
PDF file created with Kaddressbook

Description Dotan Cohen 2009-09-18 02:39:10 UTC
Version:            (using KDE 4.3.1)
Installed from:    Ubuntu Packages

See attached screenshot. The PDF document was created in Kaddressbook, so maybe the bug is there.
Comment 1 Dotan Cohen 2009-09-18 02:40:33 UTC
Created attachment 37029 [details]
Screenshot illustrating problem
Comment 2 Pino Toscano 2009-09-18 02:51:41 UTC
A screenshot is not really helpful... please provide a sample document showing the issue.
Comment 3 Dotan Cohen 2009-11-28 17:36:25 UTC
Created attachment 38662 [details]
PDF file created with Kaddressbook

This seems to be a bug in Kaddressbook, not in Okular. The bug shows up when opening in Adobe Reader as well.

The single contact in this document has the name "בדיקה" and the phone number "999".

I am reassigning to Kaddressbook, even though I know that application is being rewritten from scratch. I will recheck this issue in the new Kaddressbook as soon as there is a version that I can install. Thanks!
Comment 4 Tobias Koenig 2010-01-10 00:54:40 UTC
Hej,

KAddressBook just calls QPrinter::setDocName( i18n( "Address Book" ) ) where
the document name is passed further to QPdfEnginePrivate::writeInfo where the
following code is executed:
  xprintf("<<\n"
          "/Title(%s)\", title.toUtf8().constData());

According to PDF spec UTF-16 or PDFDocEncoding should be used instead of UTF-8,
so Qt is the culprit.

Reported as QTBUG-7249

Ciao,
Tobias
Comment 5 Dotan Cohen 2010-01-14 12:19:58 UTC
http://bugreports.qt.nokia.com/browse/QTBUG-7249