在一个单独的文件阳明海运后我有:
flags: [<img src="/images/cms_bo/icons/english.png" alt="English"/>]
奇怪的字符()出现做html_entity_decode
当我打电话到这一点我的代码,它没有解释,所以我用html_entity_decode
。
它的工作原理,但我只有1怪字符之前我的形象:�
<?php echo html_entity_decode($form['lang']->render()); ?>
我所有的文件都UTF8编码。你有什么想法解决这个问题吗?
PS:
public static function getI18nCulturesForChoice()
{
return array_combine(self::getI18nCultures(), self::getI18nCulturesFlags());
}
显示一些相关的代码将有助于 – 2011-03-14 16:12:34
的问题还不是很清楚。为什么你首先使用'html_entity_decode'?您的描述中没有实体。 – Jon 2011-03-14 16:14:11
@jon @shakti因为否则我的代码不解释。它不会显示图像,只是(只是字符串) – 2011-03-14 16:21:47