Email template text with german characters not properly displayed
-
Hi,
I am trying to customize the email-template texts. However, I have an issue with the german characters (?,?,ü) which are not properly displayed. neither in the php nor in the html lines of code. Below my code and the result is text with e.g. “f??r” instead of für.
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /* * @hooked WC_Emails::email_header() Output the email header */ do_action( 'woocommerce_email_header', $email_heading, $email ); ?> <?php header('Content-Type: text/html; charset=UTF-8'); ?> <?php /* translators: %s: Customer first name */ ?> <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ); ?></p> <p><?php printf( "deine Bestellung ist eingegangen und wird nun verarbeitet. Du findest die Details deiner Bestellung in der mitgesendeten Rechnung." ); ?></p> <p><?php if ($order->get_payment_method() == 'bacs'){ printf('Da du Vorauskasse als Zahlungsmethode gew?hlt hast, vergewissere dich bitte, dass deine Zahlung vor Bestellschluss einlangt. Nur so k?nnen wir deine Lieferung für den n?chsten Liefertermin garantieren.'); } else { printf('Umgehend nachdem du deine Zahlng abgeschlossen hast, bekommst du eine Zahlungsbest?tigung. Deine Lieferung wird dann für den n?chsten Liefertermin vorbereitet.'); } ?></p> <h3> Danke für deinen Einkauf ... </h3> <p> ...damit st?rkst du deine Region und unterstützt die Umwelt.</p> <p><b> dein TEAM </b></p>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Email template text with german characters not properly displayed’ is closed to new replies.