Index: ./portal/src/java/org/apache/jetspeed/capabilities/impl/CapabilityValveImpl.java =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/capabilities/impl/CapabilityValveImpl.java,v retrieving revision 1.2 diff -u -r1.2 CapabilityValveImpl.java --- ./portal/src/java/org/apache/jetspeed/capabilities/impl/CapabilityValveImpl.java 4 Jun 2004 02:38:54 -0000 1.2 +++ ./portal/src/java/org/apache/jetspeed/capabilities/impl/CapabilityValveImpl.java 2 Jul 2004 23:15:02 -0000 @@ -120,7 +120,14 @@ // Put the Mime Type into the request request.setMimeType(mimeType.getName()); - request.getResponse().setContentType(mimeType.getName()); + + // Put the Mime Type and Charset into the response + StringBuffer contentType = new StringBuffer(mimeType.getName()); + if (encoding != null) + { + contentType.append("; charset=" + encoding); + } + request.getResponse().setContentType(contentType.toString()); } catch (Exception e)