【问题标题】:php decode data from utf8 to windows-1256php将数据从utf8解码到windows-1256
【发布时间】:2012-03-25 15:05:25
【问题描述】:

我使用 simplexml_load_file 加载用户推文

http://twitter.com/statuses/user_timeline/userid.xml?count=44

我用 UTF-8 编码获取数据

如何将数据转换为 windows-1256

【问题讨论】:

标签: php utf-8


【解决方案1】:
iconv("UTF-8", "Windows-1256//TRANSLIT", $string);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-09
    • 1970-01-01
    • 2013-06-17
    • 1970-01-01
    • 1970-01-01
    • 2018-09-30
    相关资源
    最近更新 更多