diff -r 1090e2141798 -r 2fdc9cc89502 org/sonews/util/io/ArticleInputStream.java --- a/org/sonews/util/io/ArticleInputStream.java Wed Jul 01 10:48:22 2009 +0200 +++ b/org/sonews/util/io/ArticleInputStream.java Wed Jul 22 14:04:05 2009 +0200 @@ -20,9 +20,9 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; -import org.sonews.daemon.storage.*; import java.io.InputStream; import java.io.UnsupportedEncodingException; +import org.sonews.storage.Article; /** * Capsulates an Article to provide a raw InputStream. @@ -41,11 +41,12 @@ final ByteArrayOutputStream out = new ByteArrayOutputStream(); out.write(art.getHeaderSource().getBytes("UTF-8")); out.write("\r\n\r\n".getBytes()); - out.write(art.getBody().getBytes(art.getBodyCharset())); + out.write(art.getBody()); // Without CRLF out.flush(); this.buffer = out.toByteArray(); } - + + @Override public int read() { if(offset >= buffer.length)