I have a database whose information is stored in ISO-8859-1 format. However, the final output that goes to the browser is encoded in UTF-8. My code currently is something along the lines of (very simplified):
$query = "SELECT id, field FROM table";
$result = odbc_execute($result);
while ($entry = odbc_fetch_array) {
$output = utf8_encode( $entry['field'] );
echo $output;
}
However, using something similar to what I have above causes a number of characters, mostly punctuation, to "disappear". What's the best may to ensure nothing gets lost in translation?