commit | ae843c5df878dcfc6de56dcad356f15cf2eb1b56 | [log] [tgz] |
---|---|---|
author | lmandel <lmandel> | Fri Sep 30 15:14:28 2005 +0000 |
committer | lmandel <lmandel> | Fri Sep 30 15:14:28 2005 +0000 |
tree | a37d0a5c024aa6e27ee9e310a6c03c2d36eed5b9 | |
parent | e78a3d8ad1289f896274eb46d9aad70a75ca4092 [diff] |
Changed encoding method in use to cleanup compile warning.
diff --git a/plugins/org.eclipse.wst.common.uriresolver/src/org/eclipse/wst/common/uriresolver/internal/util/URIHelper.java b/plugins/org.eclipse.wst.common.uriresolver/src/org/eclipse/wst/common/uriresolver/internal/util/URIHelper.java index 6e98675..b7c4707 100644 --- a/plugins/org.eclipse.wst.common.uriresolver/src/org/eclipse/wst/common/uriresolver/internal/util/URIHelper.java +++ b/plugins/org.eclipse.wst.common.uriresolver/src/org/eclipse/wst/common/uriresolver/internal/util/URIHelper.java
@@ -14,6 +14,7 @@ import java.io.File; import java.io.InputStream; +import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URL; @@ -482,7 +483,14 @@ String result = addImpliedFileProtocol(filePath); if (!isValidURI(result)) { - result = URIEncoder.encode(result); + try + { + result = URIEncoder.encode(result, "UTF8"); + } + catch(UnsupportedEncodingException e) + { + // Do nothing as long as UTF8 is used. This is supported. + } } return result; }