encode_utf8 把字符编码成字节 微信例子

##µ¼Èë encode_json decode_json
    use JSON qw/encode_json decode_json/;
    print "1111111111111111-\$d is $d\n";
    sleep(30);
    $d = encode_utf8($d);
    print "2222222222222222-\$d is $d\n";
    sleep(30);



encode_utf8  把字符编码成字节


"Time": 1468156373,
"NickName": "我们青年"
}
,{
"UserName": "@d9aa765683ac24a2c9b02023c42548fc",
"MPArticleCount": 3,
"MPArticleList": [{
"Title": "猜冠军赢iPhone6 Plus、3888现金红包",
"Digest": "\\u5565\\u5730\\u65b9",
"Cover": "http://mmbiz.qpic.cn/mmbiz/GbGhicUMGUbsEYacvtXMOckTLLGCTgKfruibVjzWF7cP1oKjua41iaia06H88osMCia4fntmqZR3jRWic5rKibFxuQsmw/640?wxtype=jpeg&wxfrom=0",
"Url": "http://mp.weixin.qq.com/s?__biz=MjM5NDM3MDM4MQ==&mid=2247484079&idx=1&sn=4b6081b4a75668bee2bbc32efa3448b3&scene=0#rd"
}
,{
"Title": "猜决赛,赢iPhone、百元现金!",
"Digest": "欧洲杯决赛,猜题赢100元现金!猜题即获幸运号奖池满20000个幸运号就送100元现金红包平均10分钟送出一",
"Cover": "http://mmbiz.qpic.cn/mmbiz/GbGhicUMGUbuYhYPpU3bY8kWGH21yiaibfpGMJaYWCf0VRynHGxicich4gdGzqNMEkJjH2yonM9EI2Pjv6kOGeuvz2Q/300?wxtype=png&wxfrom=0",
"Url": "http://mp.weixin.qq.com/s?__biz=MjM5NDM3MDM4MQ==&mid=2247484079&idx=2&sn=275470e2748642028562886f3713e595&scene=0#rd"
}
,{
"Title": "来猜题赢大奖,一起疯狂决赛之夜",
"Digest": "漫漫决赛之夜,无心睡眠?来猜题赢大奖,竞猜平台陪你疯狂一整晚【猜决赛,赢现金】猜进球——单场最高分8888元",
"Cover": "http://mmbiz.qpic.cn/mmbiz/GbGhicUMGUbsEYacvtXMOckTLLGCTgKfrpBiatTBw6nuX3fYh4Q9u8ficAMoSnwCiaTCmpWGcRBSbuibvaUySicdlVdQ/300?wxtype=jpeg&wxfrom=0",
"Url": "http://mp.weixin.qq.com/s?__biz=MjM5NDM3MDM4MQ==&mid=2247484079&idx=3&sn=70fb9a6e559b2b6b982658dfccd84c33&scene=0#rd"
}
],
"Time": 1468149521,
"NickName": "彩票•竞猜"
}
],
"ClickReportInterval": 600000




"Time": 1468156373,
"NickName": "æ们éå¹´"
}
,{
"UserName": "@d9aa765683ac24a2c9b02023c42548fc",
"MPArticleCount": 3,
"MPArticleList": [{
"Title": "çå åèµ¢iPhone6 Plusã3888ç°é红å",
"Digest": "\\u5565\\u5730\\u65b9",
"Cover": "http://mmbiz.qpic.cn/mmbiz/GbGhicUMGUbsEYacvtXMOckTLLGCTgKfruibVjzWF7cP1oKjua41iaia06H88osMCia4fntmqZR3jRWic5rKibFxuQsmw/640?wxtype=jpeg&wxfrom=0",
"Url": "http://mp.weixin.qq.com/s?__biz=MjM5NDM3MDM4MQ==&mid=2247484079&idx=1&sn=4b6081b4a75668bee2bbc32efa3448b3&scene=0#rd"
}
,{
"Title": "çå³èµï¼èµ¢iPhoneãç¾åç°éï¼",
"Digest": "欧洲æ¯å³èµï¼çé¢èµ¢100åç°éï¼çé¢å³è·å¹¸è¿å·å¥æ± æ»¡20000个幸è¿å·å°±é100åç°é红åå¹³å10åééåºä¸",
"Cover": "http://mmbiz.qpic.cn/mmbiz/GbGhicUMGUbuYhYPpU3bY8kWGH21yiaibfpGMJaYWCf0VRynHGxicich4gdGzqNMEkJjH2yonM9EI2Pjv6kOGeuvz2Q/300?wxtype=png&wxfrom=0",
"Url": "http://mp.weixin.qq.com/s?__biz=MjM5NDM3MDM4MQ==&mid=2247484079&idx=2&sn=275470e2748642028562886f3713e595&scene=0#rd"
}
,{
"Title": "æ¥çé¢èµ¢å¤§å¥ï¼ä¸èµ·ç¯çå³èµä¹å¤",
"Digest": "漫漫å³èµä¹å¤ï¼æ å¿ç¡ç ï¼æ¥çé¢èµ¢å¤§å¥ï¼ç«çå¹³å°éªä½ ç¯çä¸æ´æãçå³èµï¼èµ¢ç°éãçè¿çââååºæé«å8888å",
"Cover": "http://mmbiz.qpic.cn/mmbiz/GbGhicUMGUbsEYacvtXMOckTLLGCTgKfrpBiatTBw6nuX3fYh4Q9u8ficAMoSnwCiaTCmpWGcRBSbuibvaUySicdlVdQ/300?wxtype=jpeg&wxfrom=0",
"Url": "http://mp.weixin.qq.com/s?__biz=MjM5NDM3MDM4MQ==&mid=2247484079&idx=3&sn=70fb9a6e559b2b6b982658dfccd84c33&scene=0#rd"
}
],
"Time": 1468149521,
"NickName": "彩票â¢ç«ç"
}
],
"ClickReportInterval": 600000

转载于:https://www.cnblogs.com/zhaoyangjian724/p/6199639.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值