我需要有关编码“标题”标签的帮助。我的名字带有特殊字符,例如“ě, š, č, ř, ž, ý, á, í, é”,并且在 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ídémonů”
原来是:“V zajetí démonů”
我试试 iconv(); 和 utf8_encode(); 不工作。谢谢