-
perl utf8 encoding decoding HTML:Entities Perl中字符串编码的处置
perlutf8encodingdecodingHTML::EntitiesPerl中字符串编码的处理 转自:http://hi.baidu.com/youzhch/blog/item/991ad4357baeb00491ef3965.html #!/usr/bin/perl-wuseCGI;useEncode;useHTML::Entities;useutf8;$query=newCGI; ?...
1263
热度 -
JS汉语排序(Ext中文排序补丁)
JS中文排序(Ext中文排序补丁) 1.浏览器中文比较? if(typeof(v1)=="string"&&/.*[\u4e00-\u9fa5]+.*$/.test(v1)){//若为中文字符串,则用localeCompare比较汉字字符串,Firefox与IE均支持 returnv1.localeCompare(v2); } ?2.Ext的中文排序补丁? /*! *中文排序补...
586
热度