- Determines which encoding to attach to Native Strings
- Also used when functions are not upgraded to support Unicode yet
Encoding problems:
<?php
ini_set('unicode.runtime_encoding', 'iso-8859-5');
ini_set('unicode.from_error_subst_char', '2D');
$food = 'blåbær != блабар';
$food2 = (binary) $food;
$food3 = (string) $food2;
echo $food, '<br/>', $food2, '<br/>', $food3, "<br/>\n";
?>
Output
blåbær != блабар
blåbær != блабар
blåbær != блабар
blåbær != блабар
blåbær != блабар