cannot yet handle MBCS in html_entity_decode()
in sb_formatting.php line 234
http://bugs.php.net/bug.php?id=25670
(這個錯誤暫時用註解的方式去除,可是這樣就不能用html了)
感覺蠻詭異的, 所以我 follow 那個 PHP Bugs 的 link 看了一下, 看到這段實在讓我很無言 :
[27 Sep 2003 12:07am CEST] moriyoshi AT php.net
The very issue was already addressed and the appropriate fix is ready
for php5, though we won”t introduce this feature to the current stable
version (4.3.x).See:
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1403&r2=1.1404
因為我沒遇過這個 error, 所以寫了這個 page 作測試 :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>test!!</title> </head> <body> <? echo html_entity_decode("ü", ENT_QUOTES, "UTF-8"); ?> </body> </html>
結果我這邊是正常的 ( PHP 4.3.11 ) …
過陣子抓 Simple PHP Blog 來玩看看好了!