Topic: 请问如何将URL转换为文件路径 |
Print this page |
1.请问如何将URL转换为文件路径 | Copy to clipboard |
Posted by: jinbo Posted on: 2004-03-15 20:55 请问如何将getResource()得来的URL(包含中文、空格等)转换为标准的文件路径。 getResource().getPath()不能处理中文,例: 将 E:\Projects\Java%20Projects\insp%e6%a3%80%e9%aa%8c\5.code\defaultroot\WEB-INF\systeminfo.properties 转换为原来的 E:\Projects\Java Projects\insp检验\5.code\defaultroot\WEB-INF\systeminfo.properties |
2.Re:请问如何将URL转换为文件路径 [Re: jinbo] | Copy to clipboard |
Posted by: PrimeJava Posted on: 2004-03-17 09:38 关注! |
3.Re:请问如何将URL转换为文件路径 [Re: jinbo] | Copy to clipboard |
Posted by: javadd Posted on: 2004-03-17 21:10 顶,我遇到相关的问题了. |
4.Re:请问如何将URL转换为文件路径 [Re: jinbo] | Copy to clipboard |
Posted by: floater Posted on: 2004-03-17 23:13 I would try java.net.URLDecoder. |
5.Re:请问如何将URL转换为文件路径 [Re: jinbo] | Copy to clipboard |
Posted by: jinbo Posted on: 2004-03-18 09:40 谢谢,解决了 |
6.Re:请问如何将URL转换为文件路径 [Re: jinbo] | Copy to clipboard |
Posted by: Anycall1023 Posted on: 2004-04-07 18:04 同志,怎么解决的,也说说啊,让大家都知道! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |