Ubuntu Rhythmbox解决中文乱码 在这里介绍的是一个解决方法,修改变量。 在终端输入: gedit ~/.profile 在最后加入下面内容: exportGST_ID3_TAG_ENCODING=GBK:UTF-8:GB18030 exportGST_ID3V2_TAG_...
分类:
其他好文 时间:
2014-07-02 14:13:16
阅读次数:
166
用sublime text2 打开.c, .h,.txt等文件会自动追加一个.dump后缀,這样在打开.c,.h等文件时无法正常识别,从而无法正常进行语法着色,网上说是因为安装了GBK Encoding Support 插件的问题,于是就删除这个插件,发现再打开不会自动加.dump后缀了,但是遇到中...
分类:
其他好文 时间:
2014-07-02 10:32:11
阅读次数:
216
response 后刷新页面先要求点按钮生成文件,同时按钮变灰,文件生成好直接打开该文件,按钮可用。一,给按钮增加点击后变灰,页面刷新变可用属性。打开文件代码如下: //写出文件 System.Text.Encoding encoding = System.Text.Encoding....
分类:
其他好文 时间:
2014-07-01 20:13:00
阅读次数:
353
string类型转成byte[]:byte[]byteArray=System.Text.Encoding.Default.GetBytes(str);byte[]转成string:stringstr=System.Text.Encoding.Default.GetString(byteArray)...
分类:
其他好文 时间:
2014-07-01 19:50:05
阅读次数:
206
在输出的格式为UTF-8的格式,但是打开CSV文件一直为乱码,后来参考了这里的代码,搞定了乱码问题,原文请参考:http://hbase.iteye.com/blog/1172200 private static void writeBcp( ) throws IOException ...
分类:
编程语言 时间:
2014-07-01 14:16:46
阅读次数:
274
Since I use Sublime ,I want to write aencoding convent program .Here isthe knowage what i need .InputStreamReader:This class is the brage from bytetyp...
分类:
其他好文 时间:
2014-07-01 13:57:23
阅读次数:
214
//这里实现 某个文件下的所有图片,并列出来!
header("Content-type:text/html;charset=utf8");
$handle=opendir('.');
echo "目录 handle: $handle\n";
echo "档案:\n";
while ($file = readdir($handle)) {
if(@eregi("[_\.0-...
分类:
Web程序 时间:
2014-07-01 11:19:52
阅读次数:
233
学习python时想要在gvim中配置python的编译环境,网上找到一个比较好用的vimrc配置,保存下来以备下次有需要。set encoding=utf-8set termencoding=utf-8set fileencodings=utf-8,chinese,latin-1if has("w...
分类:
Windows程序 时间:
2014-07-01 10:20:25
阅读次数:
1794
由于C3P0使用比较广泛,下面介绍C3P0在spring和hibernate3配置中的一些常用配置项,首先先把配置文件贴出来先,配置的文件名为dbContext.xml<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www...
分类:
编程语言 时间:
2014-07-01 09:31:52
阅读次数:
202
SSH、telnet、串口登录等,类似Secure CRT,蛮好用的。 中文显示乱码的解决方法,file->properties,在Encoding那里修改为UTF-8 修改颜色,点Edit修改里面的颜色
分类:
其他好文 时间:
2014-07-01 00:32:50
阅读次数:
267