zoukankan      html  css  js  c++  java
  • perl unicode 报Wide character

    node2:/django/mysite/news/templates#echo $LANG
    en_US.UTF-8
    
    node2:/django/mysite/news/templates#cat a1.pl 
    my $a='中国';
    print $a."
    ";
    print length($a);
    print "
    ";
    
    node2:/django/mysite/news/templates#perl a1.pl
    中国
    6
    
    node2:/django/mysite/news/templates#cat a1.pl 
    use utf8;
    my $a='中国';
    print $a."
    ";
    print length($a);
    print "
    ";
    node2:/django/mysite/news/templates#perl a1.pl
    Wide character in print at a1.pl line 3.
    中国
    2
    
    unicode 就会报 Wide character 

  • 相关阅读:
    稀疏数组
    队列
    链表

    递归
    排序
    查找
    postman设置环境变量
    postman获取全局
    iframe页面刷新问题
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349352.html
Copyright © 2011-2022 走看看