码迷,mamicode.com
首页 >  
搜索关键字:encoding    ( 9266个结果
poj1026
CipherTime Limit:1000MSMemory Limit:10000KTotal Submissions:18970Accepted:5067DescriptionBob and Alice started to use a brand-new encoding scheme. Sur...
分类:其他好文   时间:2014-05-12 12:18:48    阅读次数:371
hbase hfilev2
HFileV2文件 HFileV2文件写入通过StoreFile.Writer-->HFileWriterV2进行写入。 文件格式通过hfile.format.version配置。默认为2,也只有2这个值在0.96可用。 可通过cf中配置DATA_BLOCK_ENCODING配置dataBlock的encoding, 可配置值:NONE,PREFIX,DIFF,FAST_DIFF,PREF...
分类:其他好文   时间:2014-05-11 02:57:42    阅读次数:589
Velocity模版加载(classpath、webapp)
classpath资源路径加载: velocity.properties文件配置 file.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader input.encoding = UTF-8 output.encoding = UTF-8Servlet代...
分类:移动开发   时间:2014-05-09 06:14:52    阅读次数:387
修改eclipse默认编码方式
设置js文件的默认编码格式为UTF-8 在Windows->Preference页面中,选择General->Content Types 在右边的框中,选择Text->Javascript,将下面的Default Encoding改为utf-8 设置workspace的编码格式为UTF-8 在...
分类:系统相关   时间:2014-05-08 17:45:14    阅读次数:385
node.js使用iconv-lite和zlib解决gzip压缩和gbk乱码
安装插件request,iconv-lite。zlib內置。1、设置请求参数中的encoding为null,这样传入回调函数中的body将是一个buffer。(默认为utf8编码)2、用zlib.gunzip()方法对body进行解压,解压的到的依然是个buffer。request({ uri: u...
分类:Web程序   时间:2014-05-08 12:19:22    阅读次数:851
python 向上取整ceil 向下取整floor 四舍五入round
#encoding:utf-8import math#向上取整print "math.ceil---"print "math.ceil(2.3) => ", math.ceil(2.3)print "math.ceil(2.6) => ", math.ceil(2.6)#向下取整print "\nm...
分类:编程语言   时间:2014-05-08 12:11:13    阅读次数:467
python批量修改指定目录文件名
这小例子只要是说明用python怎么批量修改指定目录的文件名: 记得要把脚本跟修改的文件放在同一个目录下 #encoding:utf-8 import os import sys files = os.listdir('D:\\1') #路径可以自己 for name in files: a = os.path.splitext(name) if a[1] == '.txt': ...
分类:编程语言   时间:2014-05-08 08:16:14    阅读次数:537
Asp.net导出Excel乱码的解决方法
通过跟踪Asp.net服务器代码,没有乱码,然而导出Excel到浏览器后,打开时出现乱码。解决方法是添加编码格式的前缀字节码:Response.BinaryWrite(System.Text.Encoding.Unicode.GetPreamble());Response.Clear();Respo...
分类:Web程序   时间:2014-05-07 20:29:11    阅读次数:328
XML
XML 文件格式如下: <?xml version="1.0" encoding="GB2312"?> <RESULT> <VALUE> <NO>A1234</NO> <ADDR>四川省XX县XX镇XX路X段XX号</ADDR> </VALUE> <VALUE> <NO>B1234</...
分类:其他好文   时间:2014-05-07 17:56:42    阅读次数:291
笨方法学python(6)加分题--列表与字典的区别
这篇对应的是习题39 字典, 可爱的字典 #encoding:utf-8 #列表与字典的区别 #列表 thing = ['name',1,'age','AD','sex'] print thing[1] #print thing['name'] #会报错,列表只能通过整数去访问:TypeError: list indices must be integers, not str stuff...
分类:编程语言   时间:2014-05-07 06:00:20    阅读次数:365
9266条   上一页 1 ... 923 924 925 926 927 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!