Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We had a provider forced change from php 7.4 to php 8.0. Since that time the following characters are misrepresented in emails:
ä - ä
ö - ö
ü - ü
ß - ß
Ä - Ä
Ö - Ö
Ü - Ãœ
I'm quite sure that ths behaviour depends on the php change. Is there a solution or workaround?
Kind regards
Waldemar
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork webform-3325588
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
joseph.olstadjust a hint/suggestion but I recommend enabling the dblog, set the log level to the most sensitive level, look for log errors corresponding around the time the email is sent, you may also want to upgrade any related mail modules or check for patches.
what version of PHP are you using? cgi or fpm? 8.0.22 ?
which OS (Windows, or Linux? ) what web server are you using, Apache or nginx or ms IIS or some other web server?
Comment #3
joseph.olstadComment #5
himanshu_jhaloya CreditAttribution: himanshu_jhaloya at Valuebound for Valuebound commentedmy opinion is to enable the error log dblog module, check the PHP compatibility PHP 8:0 and look for any patches for the respective module
Comment #6
himanshu_jhaloya CreditAttribution: himanshu_jhaloya at Valuebound for Valuebound commentedComment #7
iceman2202 CreditAttribution: iceman2202 commentedThanks to all who have dealt with this problem so far. Today I noticed that the problem seems to affect all emails that drupal sends.
Now, I am in contact with the provider about the php switch. Maybe something went wrong with the switch!
Kind regards
Waldemar
Comment #8
down2under CreditAttribution: down2under commentedI have had the same problems, when switching to php 8.
I fixed it, when I changed the mail system to Default not HTMLMail under admin/config/system/mailsystem
And inside webform you should not use HTML mail sending
Drupal 7 is not working correctly with php 8 regarding the mail system.
See following other issues:
https://www.drupal.org/project/htmlmail/issues/3318128
https://www.drupal.org/project/drupal/issues/3319062
https://www.drupal.org/project/webform/issues/3319069
Comment #9
iceman2202 CreditAttribution: iceman2202 commentedMeanwhile, I created a test environment with drupal 9.4.9 and actual webform module. The result is the same: the german Umlaute are also misrepresented.
Meanwhile, after I faced the hosting provider with both issues I got the answer: There is a problem with the php version and mime. It will solved with next update.
Does anyone know about such circumstances and/or context?
Comment #10
Liam MorlandIt would be great to get an automated test that would demonstrate this. Then we can clearly see it working on PHP 7 and failing on PHP 8.
Comment #11
iceman2202 CreditAttribution: iceman2202 commentedSorry, but I have no possibility to turn back to php 7. The provider (Hosteurope) provides only php 8.0 and php 8.1.
Therefore here is an example of an email response of drupal 9 webform php 8.0;
Submitted by: Anonymous
Submitted values are:
-------- Hundeführer
--------------------------------------------------------
*Vorname*
Hans
*Nachname*
Mustermann
*Adresse*
Teststrasse 11
Stuttgart 7777
*Email Adresse*
w.test@test.de [1]
*Hundeführer=Hundehalter*
Ja
*Telefon*
0170 1111111 [2]
-------- Angaben zum Hund
----------------------------------------------------
*Rufname des Hundes*
Brix
*Zwingername*
Alacantara
*Rasse*
Schäferhund
*Wurftag des Hundes*
So., 02/12/2017 - 00:00
*Geschlecht*
Rüde
*Eigenschaften und Ausbildungsstand des Hundes* sehr aktiv
*Bemerkungen*
ist ein übler Bursche
-------- Einverständnis
-----------------------------------------------------
*Bestätigung*
Ja
*EinverstandenMitglied*
Ja
*Einverstanden*
Ja
[1] mailto:w.test@test.de
[2] tel:0170 1111111
Comment #12
Liam MorlandThis may be related to changes to character encoding configuration rather than the PHP version itself.