You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/09/06 18:03:43 UTC
svn commit: r440747 -
/incubator/roller/branches/roller_3.0/src/org/apache/roller/webservices/atomprotocol/AtomServlet.java
Author: snoopdave
Date: Wed Sep 6 09:03:42 2006
New Revision: 440747
URL: http://svn.apache.org/viewvc?view=rev&rev=440747
Log:
Need to set content type before getting writer, otherwise it defaults to browsers default charset (typically ISO-8859)
Modified:
incubator/roller/branches/roller_3.0/src/org/apache/roller/webservices/atomprotocol/AtomServlet.java
Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/webservices/atomprotocol/AtomServlet.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/webservices/atomprotocol/AtomServlet.java?view=diff&rev=440747&r1=440746&r2=440747
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/webservices/atomprotocol/AtomServlet.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/webservices/atomprotocol/AtomServlet.java Wed Sep 6 09:03:42 2006
@@ -118,8 +118,8 @@
// return an entry
Entry entry = handler.getEntry(pathInfo);
if (entry != null) {
- Writer writer = res.getWriter();
res.setContentType("application/atom+xml; charset=utf-8");
+ Writer writer = res.getWriter();
serializeEntry(entry, writer);
writer.close();
} else {