What are the potential drawbacks of changing the encoding to western European for displaying umlauts?

Changing the encoding to western European for displaying umlauts may cause issues with characters that are not supported in that encoding, leading to incorrect or missing characters in the displayed text. To solve this issue, it is recommended to use UTF-8 encoding, which supports a wider range of characters including umlauts.

// Set the encoding to UTF-8 for displaying umlauts
header('Content-Type: text/html; charset=utf-8');