Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Jute Powerful Forum  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Jute 的中文问题问题,有人提过么?
libinbin





发贴: 177
积分: 77
于 2003-05-08 09:26 user profilesend a private message to usersend email to libinbinsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
附件用中文名的话,连接名称是乱码 ...



作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-08 09:39 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这不是问题哟,这也不是乱码,是URLEncode过的,这样才能保证所有浏览器能正确下载附加。好像其他的论坛对中文名附件支持得都不太好吧? 状态栏显示的是有问题,但这应该是IE的bug



作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
阿熊



发贴: 0
积分: 0
于 2003-05-08 10:05 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
下载时文件名是正确的


作者 Re:Jute 的中文问题问题,有人提过么? [Re:zua]
libinbin





发贴: 177
积分: 77
于 2003-05-08 16:52 user profilesend a private message to usersend email to libinbinsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
zua wrote:
下载时文件名是正确的


下载时也是不正确的



作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
jktt



Jute Ent User


发贴: 329
积分: 0
于 2003-05-08 17:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
是不正确


作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-08 22:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不会吧,你怎么下载的?直接点浏览器链接?因为是txt文件,所以不会出现下载框,用右键另存为才是下载。其他不能直接显示的文件如zip,rar,jar等如果直接点链接也是出现下载的,这时候你可以注意到,中文文件名是不会错的。

另外不能用flashget或wget下载。

resin配置文件.txt (2.3k)


rainman edited on 2003-05-08 22:41


作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-08 22:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Jute的做法是符合HTTP协议的,根据RFC,URL中不能出现中文字符,只能出现URL安全字符(数字和英文字母,/,%,?,& . 等),其他字符需要URLEncode,而Web Server在解析请求参数的时候首先就要URLDecode来还原原来的字符。有些Web Server是可以直接使用中文的,但有可能URLDecode失败,比如英文操作系统的apache。

注意看我帖的图,是用Mozzila,状态栏上显示的就是正确的URLDecode过的字符,IE是有bug才显示错误的。Mozzila点右键选“链接另存为..."也能得到正确的文件名。




作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
SimonLei



CJSDN高级会员


发贴: 288
积分: 100
于 2003-05-09 12:08 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
再次支持mozilla, hoho~~~


You may say I am a dreamer, But I am not the only one.
My blog+wiki: http://blogsite.3322.org/
作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
jktt



Jute Ent User


发贴: 329
积分: 0
于 2003-05-09 14:13 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
save as:

resiné???????????.txt



作者 Re:Jute 的中文问题问题,有人提过么? [Re:jktt]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-10 01:19 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你用什么浏览器?我用了IE,Mozzilla都没问题呀。



作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-05-10 02:50 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
The underlying os has a role too. I am on nt4 english version, ie6.

I just rename the ???.txt file to enligh letters.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:Jute 的中文问题问题,有人提过么? [Re:jktt]
tears



Jute Ent User


发贴: 82
积分: 0
于 2003-05-12 21:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Post is deleted

tears edited on 2003-05-20 21:27

作者 Re:Jute 的中文问题问题,有人提过么? [Re:tears]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-12 21:37 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我想Jute对中文附件的处理方式应该是对的,当然不排除浏览器的对协议的不兼容性。(Floater就提到了英文操作系统无法支持还原中文名)

IE5的同志们下载下面这个附件看看。如果不正确,请抓一下图。IE6和Mozilla都没问题哟。

Html2Txt转换程序.zip (79.88k)




作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
jktt



Jute Ent User


发贴: 329
积分: 0
于 2003-05-12 21:57 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Html2Txt杞?崲绋嬪簭


作者 Re:Jute 的中文问题问题,有人提过么? [Re:jktt]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-05-12 22:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jktt wrote:
Html2Txt杞?崲绋嬪簭

你能不能不用MyIE来试一下?




作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
jktt



Jute Ent User


发贴: 329
积分: 0
于 2003-05-12 23:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
就是myie


作者 Re:Jute 的中文问题问题,有人提过么? [Re:rainman]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-05-13 00:46 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
rainman wrote:
我想Jute对中文附件的处理方式应该是对的,当然不排除浏览器的对协议的不兼容性。(Floater就提到了英文操作系统无法支持还原中文名)

IE5的同志们下载下面这个附件看看。如果不正确,请抓一下图。IE6和Mozilla都没问题哟。

The file save window gave those wierd vertical bars, but once it's saved, it does have the right filename with correct chinese chars.

Just a minor glitch from os/browser side, I guess. We could submit a bug report to them.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:Jute 的中文问题问题,有人提过么? [Re:libinbin]
jp_hao



发贴: 0
积分: 0
于 2003-05-14 10:42 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我用的是IE6.0,如果不check 上IE--选项--高级--总是以UTF-8发送URL,则不需URLEncoder.encode(filename),它能下载中文,不乱码。如果Check上了这个选项,则需要URLEncoder.encode(filename),这时出现的是乱码,保存时默认的名字也是乱码,这只是在本人的服务器上的测试,不全面。是不是与UTF-8相关?



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2020 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923