上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 177 下一页
摘要: utf8 Perl编译 来启用/禁用 UTF-8(or UTF-EBCDIC) 在源代码里简洁:use utf8; no utf8; # Convert the internal representation of a Perl scalar to/from UTF-8. $num_octets... 阅读全文
posted @ 2016-07-10 15:37 czcb 阅读(152) 评论(0) 推荐(0) 编辑
摘要: encode_utf8 $octets = encode_utf8($string); Equivalent to "$octets = encode("utf8", $string)". The characters in $string are encoded i... 阅读全文
posted @ 2016-07-10 11:38 czcb 阅读(176) 评论(0) 推荐(0) 编辑
摘要: encode_utf8 $octets = encode_utf8($string); Equivalent to "$octets = encode("utf8", $string)". The characters in $string are encoded i... 阅读全文
posted @ 2016-07-10 11:38 czcb 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: [root@wx03 mojo]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;# /foo?us... 阅读全文
posted @ 2016-07-10 09:26 czcb 阅读(140) 评论(0) 推荐(0) 编辑
摘要: [root@wx03 mojo]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;# /foo?us... 阅读全文
posted @ 2016-07-10 09:26 czcb 阅读(323) 评论(0) 推荐(0) 编辑
摘要: perl 编码问题;use utf8表示代码使用UTF-8写的[root@wx03 0710]# cat a1.pl #use utf8;my $str='测试utf8字符集';print $str."\n";[root@wx03 0710]# perl a1.pl 测试utf8字符集[roo... 阅读全文
posted @ 2016-07-10 09:02 czcb 阅读(266) 评论(0) 推荐(0) 编辑
摘要: perl 编码问题;use utf8表示代码使用UTF-8写的[root@wx03 0710]# cat a1.pl #use utf8;my $str='测试utf8字符集';print $str."\n";[root@wx03 0710]# perl a1.pl 测试utf8字符集[roo... 阅读全文
posted @ 2016-07-10 09:02 czcb 阅读(314) 评论(0) 推荐(0) 编辑
摘要: use LWP::UserAgent;use HTTP::Date qw(time2iso str2time time2iso time2isoz);use Net::Ping; use Socket;use Net::SMTP;use LWP;use LWP::Simple;use LWP... 阅读全文
posted @ 2016-07-09 21:34 czcb 阅读(172) 评论(0) 推荐(0) 编辑
摘要: use LWP::UserAgent;use HTTP::Date qw(time2iso str2time time2iso time2isoz);use Net::Ping; use Socket;use Net::SMTP;use LWP;use LWP::Simple;use LWP... 阅读全文
posted @ 2016-07-09 21:34 czcb 阅读(132) 评论(0) 推荐(0) 编辑
摘要: [root@wx03 lib]# cat a1.pl #引入模块 use URI::Escape; #urlencode $encoded = uri_escape("【中均】"); print $encoded."\n";[root@wx03 lib]# perl a1.pl %E3%... 阅读全文
posted @ 2016-07-09 20:39 czcb 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 177 下一页