The forum operates in read-only mode. Please head to StackOverflow for support.
I want to upload about chinese's folder or picture to the server,but it can't work.And it did'nt have any error messages on it. Is anybody can tell me why?thanks!
chinese's folder ? are you chinese ? i am...so i have this question also...the idea of my is that change it's name when upload in the 185th row of commands.php like$sFileName = strtotime("now").".".$sExtension;
weiaijun wrote:chinese's folder ? are you chinese ? i am...so i have this question also...the idea of my is that change it's name when upload in the 185th row of commands.php like$sFileName = strtotime("now").".".$sExtension;
you are chinese also在使用FCKeditor2.4.3时若上传的图片或者flash的文件名为中文时,发现一下情况:问题1:当点击“插入/编辑图像”或者“插入/编辑Flash”按钮时,在弹出的对话框中选择上传按钮,如果上传的文件名为中文时会出现乱码。解决办法: 把SimpleUploaderServlet.java做如下修改: 找到该程序中DiskFileUpload upload = new DiskFileUpload(),然后在该行下面添加 upload.setHeaderEncoding("UTF-8")问题2: 当点击“插入/编辑图像”或者“插入/编辑Flash”按钮时,在弹出的对话框中使用浏览服务器按钮上传中文文件时会出现乱码。解决办法: 和问题1的解决办法基本一样,只不过需要在ConnectorServlet.java中添加upload.setHeaderEncoding("UTF-8")便可。问题3: 当点击“插入/编辑图像”或者“插入/编辑Flash”按钮时,在弹出的对话框中点击浏览服务器按钮,会弹出“浏览服务器”页面,如果想在该页面中使用Create New Folder按钮来创建一个中文目录时,会出现中文目录乱码。解决办法: web容器的编码要与FCKeditor默认的编码UTF-8一致,如果使用的是Tomcat,需修改tomcat服务器中conf目录下的server.xml。如下: <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="utf-8" /> <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" URIEncoding="utf-8"/>其实就是在原来的基础上添加URIEncoding的属性值为utf-8。
Re: about upload chinese name folder~please tell me!
chinese's folder ? are you chinese ? i am...
so i have this question also...
the idea of my is that change it's name when upload in the 185th row of commands.php like
$sFileName = strtotime("now").".".$sExtension;
Re: about upload chinese name folder~please tell me!
Re: about upload chinese name folder~please tell me!
you are chinese also
在使用FCKeditor2.4.3时若上传的图片或者flash的文件名为中文时,发现一下情况:
问题1:
当点击“插入/编辑图像”或者“插入/编辑Flash”按钮时,在弹出的对话框中选择上传按钮,如果上传的文件名为中文时会出现乱码。
解决办法:
把SimpleUploaderServlet.java做如下修改:
找到该程序中DiskFileUpload upload = new DiskFileUpload(),然后在该行下面添加
upload.setHeaderEncoding("UTF-8")
问题2:
当点击“插入/编辑图像”或者“插入/编辑Flash”按钮时,在弹出的对话框中使用浏览
服务器按钮上传中文文件时会出现乱码。
解决办法:
和问题1的解决办法基本一样,只不过需要在ConnectorServlet.java中添加
upload.setHeaderEncoding("UTF-8")便可。
问题3:
当点击“插入/编辑图像”或者“插入/编辑Flash”按钮时,在弹出的对话框中点击浏览
服务器按钮,会弹出“浏览服务器”页面,如果想在该页面中使用Create New Folder按钮
来创建一个中文目录时,会出现中文目录乱码。
解决办法:
web容器的编码要与FCKeditor默认的编码UTF-8一致,如果使用的是Tomcat,需修改
tomcat服务器中conf目录下的server.xml。如下:
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="utf-8" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" URIEncoding="utf-8"/>
其实就是在原来的基础上添加URIEncoding的属性值为utf-8。