Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

* sorry,previous version didn't compile

f1ori7936e58fe754
diff --git a/source/de/anomic/kelondro/util/ByteBuffer.java b/source/de/anomic/kelondro/util/ByteBuffer.java
index 7b19e9ec0..be068424e 100644
--- a/source/de/anomic/kelondro/util/ByteBuffer.java
+++ b/source/de/anomic/kelondro/util/ByteBuffer.java
@@ -188,7 +188,11 @@ public final class ByteBuffer extends OutputStream {
}
public ByteBuffer append(final String s) {
- return append(s.getBytes("UTF-8"));
+ try {
+ return append(s.getBytes("UTF-8"));
+ } catch (UnsupportedEncodingException e) {
+ return append(s.getBytes());
+ }
}
public ByteBuffer append(final String s, final String charset) throws UnsupportedEncodingException {