What are the best practices for handling quoted-printable emails in PHP to ensure proper display of special characters like umlauts?

When handling quoted-printable emails in PHP, it's important to properly decode the quoted-printable encoding to ensure special characters like umlauts are displayed correctly. One way to do this is by using the PHP function `quoted_printable_decode()` to decode the quoted-printable text.

// Example code snippet to handle quoted-printable emails in PHP

// Sample quoted-printable encoded text
$quotedPrintableText = "Gru%DF Gott";

// Decode the quoted-printable text
$decodedText = quoted_printable_decode($quotedPrintableText);

// Output the decoded text
echo $decodedText;