阅读背景:

perl encode_json 会产生 UTF-8 (binary) string decode_json 需要一个 UTF-8 (binary) string_weixin_30690833的博客

来源:互联网 
encode_json

    $json_text = encode_json $perl_scalar
Converts the given Perl data structure to a UTF-8 encoded, binary string.

This function call is functionally identical to:

    $json_text = JSON->new->utf8->encode($perl_scalar)


  转换给定的perl数据结构到一个UTF-8编码的,2进制的字符串。

 encode_json 产生一个UTF-8编码的2进制字符



[encode_json

    $json_text = encode_json $



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: