CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • German umlauts not replaced correctly in PDF letter
Pages: [1]

Author Topic: German umlauts not replaced correctly in PDF letter  (Read 1751 times)

Reto

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.9
German umlauts not replaced correctly in PDF letter
January 29, 2011, 09:19:47 am
We generate PDF letters ("Actions" > "Print PDF letter") and face the problem that German umlaut like äöü are not replaced correctly when we use tokens like {contact.last_name}.

I found another topic discussion this issue and checked the bugfix CRM-6630 (unfortunately I am not allowed to post external links!?). It should be included in the version we use (3.2.5).

Any advice on what to do now?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: German umlauts not replaced correctly in PDF letter
February 01, 2011, 11:14:26 am
Hi,

you can post links, they simply will be with a nofollow (to avoid leaking pagerank to bob the spammer promoting blue pills).

http://issues.civicrm.org/jira/browse/CRM-6630

It likely means that it doesn't use the same code path, or that the tokens are replaced after the encoding.

It would be great you investigate and find where it gets scrambled.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

resga

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 3
  • CiviCRM version: 3.4.2
  • CMS version: Drupal
  • MySQL version: 5.1.41
  • PHP version: 5.3
Re: German umlauts not replaced correctly in PDF letter
February 04, 2011, 01:16:37 am
Adding 'utf8_decode' in CRM/Utils/PDF/Utils.php fixed it for me:
http://forum.civicrm.org/index.php/topic,18404.msg76607.html
« Last Edit: February 04, 2011, 01:20:29 am by resga »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: German umlauts not replaced correctly in PDF letter
February 04, 2011, 03:50:35 am
Hi,

danke schön (and it will be properly printed if I send you a pdf letter ;)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • German umlauts not replaced correctly in PDF letter

This forum was archived on 2017-11-26.