Example 1 — Decode an Accented Word
Turn =C3=A9 back into the letter é.
<?php
$encoded = "Caf=C3=A9";
echo quoted_printable_decode($encoded), PHP_EOL; How It Works
- Start with encoded text. =C3=A9 is the UTF-8 bytes of é.
- Call the function. Each =XX code becomes one byte.
- Bytes join up. They form the letter é.
- Print the result. You see Café.

