summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-09-14 01:08:10 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-09-13 23:18:14 +0000
commit40f1849e0f68ff07201015fdba18d297d71b9c4a (patch)
tree7c356fcd150a9e4e9c330f50c7c354a4c7011a30 /scripting
parenta28ad55a306d31a49061b1564a3f86e219a8a55b (diff)
scripting: encode(String) in URLEncoder has been deprecated
http://docs.oracle.com/javase/1.5.0/docs/api/java/net/URLEncoder.html Change-Id: I9d9b40ecf0d76618376975c52e5d9f27ec4bae8e Reviewed-on: https://gerrit.libreoffice.org/11438 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/PathUtils.java2
1 files changed, 1 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 48ca6c9a7cf7..5bea115ca4db 100644
--- a/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
+++ b/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
@@ -68,7 +68,7 @@ public class PathUtils {
{
buff.append('/');
}
- buff.append( java.net.URLEncoder.encode( (String)t.nextElement() ) ); }
+ buff.append( java.net.URLEncoder.encode( (String)t.nextElement(),"UTF-8" ) ); }
return buff.toString();
}