What are the potential issues with 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-Latin characters. To avoid problems, it's recommended to use UTF-8 encoding, which supports a wider range of characters and is more compatible with modern web standards.

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