diff -r 6fceb66e1ad7 -r ad210aa137a4 org/sonews/util/io/ArticleInputStream.java --- a/org/sonews/util/io/ArticleInputStream.java Fri Jun 26 16:48:50 2009 +0200 +++ b/org/sonews/util/io/ArticleInputStream.java Thu Aug 06 18:34:10 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)