diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/PathUtils.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/PathUtils.java b/scripting/java/com/sun/star/script/framework/provider/PathUtils.java index af7772f914ca..1bd7bd28f657 100644 --- a/scripting/java/com/sun/star/script/framework/provider/PathUtils.java +++ b/scripting/java/com/sun/star/script/framework/provider/PathUtils.java @@ -69,7 +69,15 @@ public class PathUtils { { buff.append('/'); } - buff.append( java.net.URLEncoder.encode( (String)t.nextElement(),"UTF-8" ) ); } + try + { + buff.append( java.net.URLEncoder.encode( (String)t.nextElement(), "UTF-8" ) ); + } + catch (java.io.UnsupportedEncodingException e) + { + e.printStackTrace(); + } + } return buff.toString(); } |