字符串转换为正确的格式

时间:2013-12-05 11:44:50

标签: php mysql character-encoding special-characters

我从数据库中获取了这个字符串:

$string = "Meubles salle Ã";

有些字符没有像他们想象的那样按正确的顺序提取。

如何将它们转换为原始格式?

我尝试的事情:

echo utf8_decode($string);

echo utf8_encode($string);

echo htmlentities($string);

echo htmlentities($string,0,"UTF-8");

没有任何作用。任何人都能为我提供一个坚实而完美的解决方案吗?感谢

0 个答案:

没有答案
相关问题