SWFUpload中文乱码问题。
/**在设置时需要设置一下上传事件 *upload_start_handler : UploadStart, *动态传参数,解决文件名中文乱码问题 **/ function uploadStart(file) {try {/* I don't want to do any file validation or anything, I'll just update the UI and return true to indicate that the upload should start */var progress = new FileProgress(file, this.customSettings.progressTarget);//progress.setStatus("Uploading...");progress.setStatus("上传中...");progress.toggleCancel(true, this);this.setPostParams({ 'fileName':encodeURIComponent(file.name) }); }catch (ex) {}return true;}
?
在action中使用?
fileName = URLDecoder.decode(fileName, "UTF-8");
?
?第三种:配置web.config配置文件这种方法我没试,不知道行不行。
?