计算机中储存的信息都是用二进制数表示的;而我们在屏幕上看到的英文、汉字等字符是二进制数转换之后的结果。字符集(Charset):是一个系统支持的所有抽象字符的集合。字符是各种文字和符号的总称,包括各国家文字、标点符号、图形符号、数字等。字符编码(Character
Encoding):是一套法则,使...
分类:
其他好文 时间:
2014-05-16 18:18:56
阅读次数:
316
方法一:文件里写:方法二:选择window –> Preferences –>
MyEclipse –> Files and Editors –>
JSP中选择你要设置的Encoding根本行不通啊,没有encoding这一项啊,在style里面又不能改,哪位用过myeclise8.5的帮个忙---...
分类:
Web程序 时间:
2014-05-14 07:43:34
阅读次数:
539
转自Ibm:Name mangling is the encoding of function and
variable names into unique names so that linkers can separate common names in
the language. Type n...
分类:
编程语言 时间:
2014-05-13 18:18:53
阅读次数:
421
1.Android资源文件
构建应用程序需要丰富多彩的色彩,在Android平台中可以将相关颜色信息配置在color.xml文件中。
例:
xml version="1.0" encoding="utf-8"?>
resources>
color name="green">#00EE00color>
color name="black">#000000color>...
分类:
移动开发 时间:
2014-05-13 08:31:48
阅读次数:
583
需求:由于某个n年前的工具的错误,在复制一批文件的时候产生了大量的"复件xxxxxxx""复件(2)XXXXX"等类似文件,由于目录结构深,文件多,预计在5000万个,但是有多少这种错误的文件不清楚,因此写个脚本遍历删除。#encoding=utf-8
#author:skybug
#date:2014-05-11
#function..
分类:
编程语言 时间:
2014-05-13 04:36:43
阅读次数:
393
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
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
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
设置js文件的默认编码格式为UTF-8
在Windows->Preference页面中,选择General->Content Types
在右边的框中,选择Text->Javascript,将下面的Default Encoding改为utf-8 设置workspace的编码格式为UTF-8
在...
分类:
系统相关 时间:
2014-05-08 17:45:14
阅读次数:
385
这小例子只要是说明用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