测试成功,完美解决。
只需修改VIM目录下面的这个文件_vimrc。
加油吧,骚年。很强大的!
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决cons...
I use the Elicpse IDE to develope the ansdroid app.Sometime encounter the messy code in the Elicpse
One solve method is that to fix the Ecicpse's enCoding setting:
click "Windows->Preference...
分类:
其他好文 时间:
2014-06-19 09:57:22
阅读次数:
211
如果导出中文时出现乱码,可以尝试将字符串转换成gb2312,例如下面就把$yourStr从utf-8转换成了gb2312:$yourStr = mb_convert_encoding("gb2312", "UTF-8", $yourStr); 总结 php导出Excel php导入Excel Php...
分类:
Web程序 时间:
2014-06-17 00:55:10
阅读次数:
271
OData 1-4 OData语法(上)
假设目前提供OData的服务地址是
http://localhost:9527/ODataService.svc
提供的服务内容如下所示 (提供了一个WagerInformations)
xml version="1.0" encoding="utf-8" standalone="yes" ?>
...
分类:
其他好文 时间:
2014-06-15 17:54:51
阅读次数:
1511
原文出处:http://blog.jobbole.com/42246/本文首先阐述了人们关于统一资源定位符(URL)编码的普遍的误读,其后通过阐明HTTP场景下的URL encoding来引出我们经常遇到的问题及其解决方案。本文并不特定于某类编程语言,我们在Java环境下阐释问题,最后从Web应用的...
分类:
Web程序 时间:
2014-06-15 15:20:16
阅读次数:
319
File 类
File.OpenWrite 方法
StringWriter 类
File.open
//using (StreamWriter sw2 = File.CreateText(cmdFile))
using (StreamWriter sw2 = new StreamWriter(cmdFile,false, Encoding.Default)) /...
分类:
其他好文 时间:
2014-06-15 14:27:03
阅读次数:
276
1 #encoding=UTF-8 2 # Configuration files must begin with a line specifying the encoding 3 # of the the file. 4 5 #***************************...
分类:
移动开发 时间:
2014-06-15 12:50:20
阅读次数:
619
1 private string PostData(string url, string postData) 2 { 3 ASCIIEncoding encoding = new ASCIIEncoding(); 4 byte[] data = encoding.GetBytes(...
分类:
其他好文 时间:
2014-06-14 08:49:25
阅读次数:
298
1.AS代码<?xmlversion="1.0"encoding="utf-8"?>
<mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"
width="200"height="200"creationComplete="initApp()">
<mx:Script>
<![CDATA[
importmx.controls.Alert;
importf..
分类:
Web程序 时间:
2014-06-10 23:45:06
阅读次数:
341
今天在做项目时,遇到了一个问题。因为是在别人做好的基础上改东西,所以,一些东西不能按照自己的变成习惯来。就比如,我创建项目习惯刚建完就设置字符的编码集为UTF-8,而人家的项目就未必是那样了。好了,废话不多了。问题如下:一个jsp页面(里面有Java代码)的编码集为GB2312,而我修改里面东西时死活不让我保存,一保存就提示“Some characters cannot be mapped usi...
分类:
移动开发 时间:
2014-06-10 19:26:26
阅读次数:
538