【发布时间】:2012-07-27 23:54:17
【问题描述】:
我将以下文本手动输入到 wordpress 帖子表中
‚
我使用以下代码编码为 utf-8:
$text = "‚";
$enc = mb_detect_encoding($text, "UTF-8,ISO-8859-1");
$hotelDescription = iconv($enc, "UTF-8", $text);
然而,当 wordpress 回显它时,它会显示
‚
有什么想法可以输出正确的字符吗?
【问题讨论】: