What are the potential pitfalls of using ISO-8859-1 encoding in PHP scripts?

Using ISO-8859-1 encoding in PHP scripts can lead to character encoding issues, especially when dealing with non-ASCII characters. To avoid problems, it is recommended to use UTF-8 encoding instead, which supports a wider range of characters and is more universally accepted.

// Set UTF-8 encoding in PHP script
header('Content-Type: text/html; charset=utf-8');