Commit 903f2b2e authored by shake's avatar shake
Browse files

More UTF-8 compatibility stuff

git-svn-id: https://subversion.umiacs.umd.edu/ace/trunk@151 f1b3a171-7291-4a19-a512-95ad0ad9394a
parent 17b138f2
......@@ -97,7 +97,7 @@ public class ListContentsServlet extends EntityManagerServlet {
}
// header information
if ( TYPE_DIGEST.equals(output) ) {
StringBuffer header = new StringBuffer();
StringBuilder header = new StringBuilder();
header.append(c.getDigestAlgorithm());
header.append(":");
header.append(c.getName());
......@@ -155,10 +155,12 @@ public class ListContentsServlet extends EntityManagerServlet {
String digestAlg = checkmDigestAlgFormat(c.getDigestAlgorithm());
line = formatPath(rs.getString(1)) + " | " + digestAlg + " | "
+ rs.getString(2);
os.println(line);
os.write(line.getBytes("UTF-8"));
os.println();
} else if ( TYPE_DIGEST.equals(output) ) {
line = rs.getString(2) + "\t" + formatPath(rs.getString(1));
os.println(line);
os.write(line.getBytes("UTF-8"));
os.println();
} else if ( TYPE_STORE.equals(output) ) {
Token tok = em.getReference(Token.class, rs.getLong(3));
if ( tok != null ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment