一、JSP页面显示乱码
二、表单提交中文时出现乱码
三、数据库连接
大家在JSP的开发过程中,经常出现中文乱码的问题,可能一至困扰着您,我现在把我在JSP开发中遇到
的中文乱码的问题及解决办法写出来供大家参考。
一、JSP页面显示乱码
下面的显示页面(display.jsp)就出现乱码:
JSP的中文处理
<meta http-equiv="Content-Type" content="text/html; c...
分类:
Web程序 时间:
2014-06-08 15:47:29
阅读次数:
251
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that i...
分类:
编程语言 时间:
2014-06-08 15:25:00
阅读次数:
282
安装 现在可以通过ppa的方法来安装sublime text3 了,个人感觉就是有有点儿慢,毕竟要update一下。sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer配置插件 安装完成之...
分类:
其他好文 时间:
2014-06-08 15:04:52
阅读次数:
247
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace mapReduce
{
public static class helper
{
public static Dictionary MapReduce(
...
分类:
其他好文 时间:
2014-06-08 10:39:41
阅读次数:
227
1、设置编码为UTF-8
在Windows-
选择右侧框中的Text File encoding,改为utf-8
2、导入 格式化模板
windows-》preference—》java-》code style-》code template
点击import按钮
3、字体大小
Window
- Preferences-》General...
分类:
系统相关 时间:
2014-06-08 09:43:18
阅读次数:
245
//读取报告数据
string data=null;
using (System.IO.StreamReader sr = new System.IO.StreamReader(filePath, System.Text.Encoding.Default))
{
...
分类:
其他好文 时间:
2014-06-08 08:27:59
阅读次数:
236
var Cts = "bblText";
if(Cts.indexOf("Text") > 0 )
{
alert('Cts中包含Text字符串');
}
indexOf用法:
返回 String 对象内第一次出现子字符串的字符位置。
strObj.indexOf(subString[, startIndex])
参数
...
分类:
Web程序 时间:
2014-06-08 05:00:36
阅读次数:
300
为什么同时介绍svn和sftp?实际开发中都是先修改自己在服务器上的一套代码,当确定差不多的时候,才用svn提交代码,这样团队其他人就可以更新代码。通常的做法是:把服务器上的代码download到本地,然后通过各种编辑器修改好代码后,再通过一个ftp软件上传本地代码到服务器上,接着刷新浏览器看刚才修改的效果,如果没有问题则提交到svn,如果有问题则重复以上步骤。这样做确实可以实现开发需求,不过却浪...
分类:
其他好文 时间:
2014-06-08 04:13:47
阅读次数:
291
下面是个人理解的单例模式:using System;using
System.Collections.Generic;using System.Linq;using System.Text;namespace
ConsoleApplication6{ public sealed class Si.....
分类:
其他好文 时间:
2014-06-07 21:55:56
阅读次数:
277
:!cmd不退出vim 执行命令 cmd:r
!cmd不退出vim执行命令cmd,并将cmd的输出内容插入当前文本中。:shell切换到shell里(此时并没有退出vim,可以理解成vim转入后台),你可以在shell中做任何操作,退出shell(比如用exit)后,会切换回原来的vim中
分类:
其他好文 时间:
2014-06-07 21:19:01
阅读次数:
224