diff --git a/modules/book/src/main/java/me/ag2s/epublib/util/URLEncodeUtil.java b/modules/book/src/main/java/me/ag2s/epublib/util/URLEncodeUtil.java index f6404bb6153c..b0cf05ccb60c 100644 --- a/modules/book/src/main/java/me/ag2s/epublib/util/URLEncodeUtil.java +++ b/modules/book/src/main/java/me/ag2s/epublib/util/URLEncodeUtil.java @@ -24,7 +24,11 @@ public class URLEncodeUtil { for (i = '0'; i <= '9'; i++) { dontNeedEncoding.set(i); } - String reversed = "+-_.$:()!*@&#,[]"; + String mark = "-_.!~*'()"; + for (i = 0; i < mark.length(); i++) { + dontNeedEncoding.set(mark.charAt(i)); + } + String reversed = ";/?:@&=+$,#"; for (i = 0; i < reversed.length(); i++) { dontNeedEncoding.set(reversed.charAt(i)); }