centos6.5:/root/test#cat a2.pl use Net::SMTP; use LWP::UserAgent; use HTTP::Cookies; use HTTP::Headers; use HTTP::Response; use Encode; use JSON; use File::Temp qw/tempfile/; use HTTP::Date qw(time2iso str2time time2iso time2isoz); use Data::Dumper;…
#!/usr/bin/perl use DBI; use Encode; my $dbName = 'oadb'; my $dbUser = 'vxspace'; my $dbUserPass = 'xxx'; my $dbh = DBI->connect("dbi:Oracle:$dbName", $dbUser, $dbUserPass) or die "can't connect to database "; my $table_name= "…
[root@wx03 ~]# cat a14.pl use Net::SMTP; use LWP::UserAgent; use HTTP::Cookies; use HTTP::Headers; use HTTP::Response; use Encode; use JSON; use File::Temp qw/tempfile/; use HTTP::Date qw(time2iso str2time time2iso time2isoz); use Data::Dumper; my $C…
交叉编译.c文件,遇到如下问题 arm-linux-gcc -o show_lines show_lines.c -lfreetype -lm show_lines.c:199:19: error: converting to execution character set: Invalid or incomplete multibyte or wide character 大概意思是,转换为执行字符集:无效的或不完整的宽字节 解决方案:编译时,再加入 -finput-charset=GBK…
错误信息: SyntaxError: Non-ASCII character , but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details 错误原因:原因是因为Python在默认状态下不支持源代码中的编码所致. 解决方案:在Python文件开头加上# -*- coding: utf-8 -*即可解决该问题…