Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要编码方面的帮助 :( 我已从站点解析字符串:Ëè÷íûå âñòðå÷è 我的站点采用 UTF-8 编码。
如何将解析的字符串转换为我网站的编码?在这个网站 artlebedev.ru/tools/decoder 当我点击“Расшифровать”按钮时,我得到正确的结果:Личные встречи。
尝试这个
echo iconv("cp1251","utf8",iconv("utf8","cp1252","Ëè÷íûå âñòðå÷è"));
你说这行不通?
echo iconv("iso-8859-5","utf-8","Ëè÷íûå âñòðå÷è");
那你确定你的文件也是 utf8 吗?