Skip to content
Permalink
Browse files

Make encoding explicit, avoid deprecated method

  • Loading branch information...
ndw committed Mar 6, 2019
1 parent 461f181 commit 4dee2bc937da60adec9072b502aa40a7b7168b5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/xmlcalabash/core/XProcConfiguration.java
@@ -220,8 +220,8 @@ private void init() {
for (String path : pathElements) {
// Make the path absolute wrt the cwd so that it can be opened later regardless of context
path = new File(path).getAbsolutePath();
String jarFileURL = URLDecoder.decode(new File(path).toURI().toString().replace("+", "%2B"));
try {
String jarFileURL = URLDecoder.decode(new File(path).toURI().toString().replace("+", "%2B"), "UTF-8");
JarFile jar = new JarFile(path);
ZipEntry catalog = jar.getEntry("catalog.xml");
if (catalog != null) {

0 comments on commit 4dee2bc

Please sign in to comment.
You can’t perform that action at this time.