the key point is "Modified UTF-8" is not like
"Regular UTF-8", a legal Rgular UTF8 code sequence may be considered illegal
against Modified UTF8.One w...
分类:
其他好文 时间:
2014-05-09 10:51:58
阅读次数:
628
GET方式提交的数据不会受页面编码的影响,应该都是以iso8859-1方式编码提交到后台程序,在后台java代码中可以通过
String str1=new String(name.getBytes("iso8859-1"),"UTF-8");
的方式对字符串解码,解决乱码问题....
分类:
编程语言 时间:
2014-05-08 17:29:17
阅读次数:
268
publicvoidDownLoad(stringwordcode,stringwordname,stringwordcopyright)
{
stringoutfn="p_w_upload;filename={0}.txt";
Response.ContentType="application/txt;charset=GB2312";
Response.AddHeader("Content-Disposition",string.Format(outfn,wordcode));
Response.Write..
分类:
其他好文 时间:
2014-05-08 16:50:54
阅读次数:
269
extjs里面date类型格式化问题应该困扰了很多人,看网上各种方法,有将数据库里的date字段取出为string处理的,有用format格式化的,可以说这些方式都是歪门斜道,需要处理大量代码,而且类型不一致会有很多潜在问题,象我经常使用的form.updateRecord更新记录的方法大家可以去试试很难搞定的
正确做法(也许有更好的办法):
数据库出来的依旧为util.Date类型,colu...
分类:
Web程序 时间:
2014-05-08 16:07:17
阅读次数:
414
在我的项目中,一开始我使用这种方式构造图片路径,然后将其设置到JFrame中即可以显示自定义图标
String imagePath = System.getProperty("user.dir") + "/image/icon.png";// 构造图片的路径
Image imageIcon = Toolkit.getDefaultToolkit().getImage(imagePath);
...
分类:
系统相关 时间:
2014-05-08 15:56:22
阅读次数:
462
1、import java.io.*;//写进文档,然后又在显示器显示出来。public class
fileinputstream{public static void main(String[] args) throws IOException
{DataOutputStream out = n...
分类:
编程语言 时间:
2014-05-08 15:40:06
阅读次数:
376
1 import java.util.Stack; 2 3 public class T007 { 4
public static void main(String[] args) { 5 Queue q = new Queue(); 6 q.stack1...
分类:
编程语言 时间:
2014-05-08 15:32:24
阅读次数:
356
100
客户端应当继续发送请求。这个临时响应是用来通知客户端它的部分请求已经被服务器接收,且仍未被拒绝。客户端应当继续发送请求的剩余部分,或者如果请求已经完成,忽略这个响应。服务器必须在请求完成后向客户端发送一个最终响应。101
服务器已经理解了客户端的请求,并将通过Upgrade 消息头通知客.....
分类:
其他好文 时间:
2014-05-08 15:30:25
阅读次数:
439
一、NVL官方解释:PurposeNVLlets you replace null
(returned as a blank) with a string in the results of a query.Ifexpr1is null,
thenNVLreturnsexpr2. Ifexpr1is...
分类:
数据库 时间:
2014-05-08 15:14:53
阅读次数:
523
#import int main(){/* 1.NSRange/CGRange
2.NSPoint/CGPoint 3.NSSize/CGSize 4.NSRect/CGRct *///
NSRange/CGRange(location,length)NSString *str = @"i love...
分类:
其他好文 时间:
2014-05-08 14:51:00
阅读次数:
325