UTF-8 solves most of the encoding issues.
» Change the file to be "UTF-8 encoding".
» Add line at the top of the webpage.
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
» Use this conversion in PHP code:
$new_str = mb_convert_encoding($original_str, 'HTML-ENTITIES', 'UTF-8');