This commit is contained in:
James Muehlner
2013-07-09 11:14:41 -07:00
parent b44faacbae
commit 883b24f73d
5 changed files with 17 additions and 0 deletions

View File

@@ -92,6 +92,9 @@ public class List extends AuthenticatingHttpServlet {
// Write XML content type
response.setHeader("Content-Type", "text/xml");
// Set encoding
response.setCharacterEncoding("UTF-8");
// Get connection directory
Directory<String, Connection> directory = context.getConnectionDirectory();

View File

@@ -101,6 +101,9 @@ public class List extends AuthenticatingHttpServlet {
// Do not cache
response.setHeader("Cache-Control", "no-cache");
// Set encoding
response.setCharacterEncoding("UTF-8");
// Write actual XML
try {

View File

@@ -199,6 +199,9 @@ public class List extends AuthenticatingHttpServlet {
// Do not cache
response.setHeader("Cache-Control", "no-cache");
// Set encoding
response.setCharacterEncoding("UTF-8");
// Map of all available protocols
Map<String, ProtocolInfo> protocols = new HashMap<String, ProtocolInfo>();

View File

@@ -50,6 +50,9 @@ public class List extends AuthenticatingHttpServlet {
// Write XML content type
response.setHeader("Content-Type", "text/xml");
// Set encoding
response.setCharacterEncoding("UTF-8");
// Write actual XML
try {