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>
This commit is contained in:
rbuj
2014-09-14 01:08:10 +02:00
committed by Thomas Arnhold
parent a28ad55a30
commit 40f1849e0f

View File

@@ -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();
}