第2章 HTML5与HTML4的区别HTML5的文件扩展符与内容类型保持不变仍为“.html”或“.htm”,内容类型(ContentType)仍为“text/html”DOCTYPE声明:HTML4中,HTML5中,(不区分大小写)另外,当使用工具时,也可以在声明中加入SYSTEM识别符指定字符编...
分类:
Web程序 时间:
2014-08-08 04:17:35
阅读次数:
437
web前端js代码:$.ajaxSetup({ contentType : "application/x-www-form-urlencoded;charset=utf-8", complete : function(xhr, textStatus) { if (xhr.s...
分类:
其他好文 时间:
2014-08-01 19:02:02
阅读次数:
172
方法一:Json方法 通过对查询出来的结果进行比较 使用函数CompareTo() //Json方法 HttpContext.Current.Response.ContentType = "application/json"; Dat...
分类:
其他好文 时间:
2014-08-01 13:04:41
阅读次数:
216
实例: jsp页面 <%@?page?language="java"?contentType="text/html"?pageEncoding="UTF-8"%>
<%@?taglib?uri="/struts-tags"?prefix="s"%>
<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?HTML?4.01?Transitio...
分类:
其他好文 时间:
2014-07-31 10:01:57
阅读次数:
311
在编写web时,最苦恼的事情就是乱码了。 一直没怎么考虑过JSP第一句话中 <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>的ContentType和pageEncoding具体是用做什么的,害...
分类:
其他好文 时间:
2014-07-28 17:03:14
阅读次数:
405
Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8"); Response.Charset = ""; Response.ContentType = "application...
分类:
其他好文 时间:
2014-07-26 00:41:56
阅读次数:
215
解决建议:http://cnxiaowei.iteye.com/blog/262766/dqz/eh_sdxm/reporter/reporter_show_reportdraw_river.jsp:1: contentType'text/html;charset=GB2312' conflicts...
分类:
Web程序 时间:
2014-07-24 21:44:52
阅读次数:
270
Resin升级到3.1.3后,有同事发现原来在Resin 3.0.xx下成功运行的部分jsp文件(输出xml格式文件)编译出错:1234567500 Servlet ExceptionXXXXX.jsp:1: contentType 'text/xml; charset=UTF-8'conflict...
分类:
其他好文 时间:
2014-07-24 21:44:12
阅读次数:
297
用我转载的上一篇文章Asp.net中把DataTable或DataGrid导出为Excel导出的文档,中文有乱码现象,其实要解决中文乱码很简单,设置一下字符集。如下://设置编码和附件格式curContext.Response.ContentType="application/vnd.ms-exce...
分类:
Web程序 时间:
2014-07-24 21:17:53
阅读次数:
206
常用的 ContentTypeXMLGIF imagesJPEG imagesTIFF imagesMICROSOFT WORD documentRTF documentMICROSOFT EXCEL documentMICROSOFT POWERPOINT documentPDF document...
分类:
其他好文 时间:
2014-07-23 15:01:06
阅读次数:
276