一般服务器的编码格式都是UTF8,这样通过json解析下来的的数据,一般中文是不会出现乱码,但是如果服务器的编码格式不是UTF8,通过json解析的数据中的中文容易出现luan乱码,怎么解决这个问题呢?一般都是通过转码来解决,但是直接转码,是不能达到效果的,例如[jsonStringstringBy...
分类:
移动开发 时间:
2014-07-06 23:17:20
阅读次数:
250
1:源代码#!/usr/bin/env pythonname = raw_input('请输入您的姓名:')print 'Hello,', name运行时出错:y@y:~/my_note/my_python$ python 5.py File "5.py", line 3SyntaxError:.....
分类:
编程语言 时间:
2014-07-06 21:57:42
阅读次数:
236
HTML5 Form Data 对象的使用MDN: https://developer.mozilla.org/zh-CN/docs/Web/Guide/Using_FormData_Objects XMLHttpRequest Level 2 添加了一个新的接口——FormData。利用 Fo.....
分类:
Web程序 时间:
2014-07-06 21:13:00
阅读次数:
229
[HttpPost] public ActionResult StudentList( string StudName, string studName, DateTime BirthDay, FormCollection form, string controller, stri...
分类:
其他好文 时间:
2014-07-06 20:27:42
阅读次数:
136
流方式上传:$post_input = 'php://input';$save_path = dirname( __FILE__ );$postdata = file_get_contents( $post_input );if ( isset( $postdata ) && strlen( $po...
分类:
其他好文 时间:
2014-07-06 19:08:44
阅读次数:
177
linux的字符界面默认不支持中文,所以你显示中文和编辑中文往往会是乱码,今天小研究了一下。首先要明白的问题是,乱码问题其实最本质就是编码和解码不符合。 比如你往linux上传了一个中文文件,但是用cat 或者 more去看的时候发现是乱码。这是因为你的中文文件编码可能是utf-8,可能是GBK等等...
分类:
系统相关 时间:
2014-07-06 18:51:55
阅读次数:
250
事实上,umeditor 上传图片采用的是 form+隐藏iframe方式,已经能做到无刷新跨域上传。但小小遗憾的是做的并不完美,上传图片后,反馈的json信息,js并不能读取。原因在于,js不能操作跨域的iframe。1 var r = this.contentWindow.document.bo...
分类:
其他好文 时间:
2014-07-06 16:55:15
阅读次数:
316
the request doesn't contain a multipart/form-data or multipart/form-data stream, content type header一,HTTP上传的基本知识 在Form元素的语法中,EncType表明提交数据的格式 用 Encty...
分类:
其他好文 时间:
2014-07-06 13:16:31
阅读次数:
280
通过下面这段代码可以抓取到change的事件源,从而判断出是哪个属性字段触发的事件,
function change(pContext)
{var fieldName=pContext.getEventSource().getName(); }
在字段的事件设置中需要将下框中复选框的勾勾上,更多的信息可参见SDK。...
分类:
编程语言 时间:
2014-07-05 11:10:28
阅读次数:
322