Bug 207749 - Hebrew title appears as Gibberish
Summary: Hebrew title appears as Gibberish
Status: RESOLVED UPSTREAM
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 02:39 UTC by Dotan Cohen
Modified: 2010-01-14 12:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot illustrating problem (3.09 KB, image/png)
2009-09-18 02:40 UTC, Dotan Cohen
Details
PDF file created with Kaddressbook (12.54 KB, application/pdf)
2009-11-28 17:36 UTC, Dotan Cohen
Details

Note You need to log in before you can comment on or make changes to this bug.
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