diff --git a/source/net/yacy/cora/document/id/MultiProtocolURL.java b/source/net/yacy/cora/document/id/MultiProtocolURL.java index a085240fa..bb0e69cb1 100644 --- a/source/net/yacy/cora/document/id/MultiProtocolURL.java +++ b/source/net/yacy/cora/document/id/MultiProtocolURL.java @@ -565,7 +565,7 @@ public class MultiProtocolURL implements Serializable, Comparable 0x80 hex !!) public static String unescape(final String s) { final int l = s.length(); final StringBuilder sbuf = new StringBuilder(l); @@ -596,6 +596,10 @@ public class MultiProtocolURL implements Serializable, Comparable 0) { // 2015-2-19 if this then prev loop was no complete multibyte char (just add it, instead of eating it up) + sbuf.append(s.charAt(i-1)); + more = -1; + } sbuf.append((char) b); // Store in sbuf } else if ((b & 0xe0) == 0xc0) { // 110xxxxx (yields 5 bits) sumb = b & 0x1f;