Very amateur coder here. Thinking of beginning to learn Korean and thought I could combine PHP programing as well.
See bottom of this page (in IE) for error: test
All browsers (Chrome, IE, Firefox) up to date on Vista x64 (tested on Windows 7 x32 as well) IE8 compatibility mode makes no difference.
Trying to programatically reproduce: http://www.novahapkido.com/MyImages/hangul.gif
Using the excellent reference here: http://www.kfunigraz.ac.at/~katzer/korean_hangul_unicode.html
The reason I need the character codes is the ‘math’ in the middle of that site, it will allow me to find the resulting Hangul by ‘adding’ the jamo.
The code in question is
print "Still doesn't work in IE:"."\
";
for ($i = 0; $i <= 18; $i++)
{
if ($i <10) $prefix = "Đ";
else $prefix = "";
dechex($i);
$add = $prefix.$i;
print html_entity_decode($add, ENT_NOQUOTES,'UTF-8')."\
";
}
I’ve also tried UTF8_encode before html_entity_decode, even ‘naked’ everything works but IE. headers and meta both set to utf8.
Most of my programing ideas are based on other languages so working with UTF8 has been a bit daunting for me. I have searched the site including re-reading the sitepoint guide to character encoding, also found http://www.ibm.com/developerworks/library/os-php-unicode/index.html but it is a bit over my head.
Any ideas? Further utf8 tips are welcome!