我需要帮助编码“标题”标签。我有一个特殊的名字,如“ě,š,č,ř,ž,ý,á,í,é”,并且在demo.browse.php中正常工作。有我的代码,我不知道,问题在哪里,拜托,你能帮助我吗? :)谢谢
<?php
require_once('getid3.php');
$PageEncoding = 'UTF-8';
$getID3 = new getID3;
$getID3->setOption(array('encoding' => $PageEncoding));
$FullFileName = "test.webm";
$ThisFileInfo = $getID3->analyze($FullFileName);
getid3_lib::CopyTagsToComments($ThisFileInfo);
echo '<html><head>';
echo '<title>getID3() - (sample script)</title>';
echo '<meta http-equiv="Content-Type" content="text/html;charset='.$PageEncoding.'" />';
echo '</head><body>';
echo htmlentities(!empty($ThisFileInfo['comments_html']['title'])?implode('<br>', $ThisFileInfo['comments_html']['title']) : chr(160));
echo '</body></html>';
?>
重新开始:“V zajet&amp;#237; d&amp;#233; mon&amp;#367;”
原文是:“Vzajetídémonů”
我试试iconv();和utf8_encode();不工作谢谢