[sword-svn] r204 - trunk/admin

scribe at crosswire.org scribe at crosswire.org
Thu Mar 31 15:37:40 MST 2005


Author: scribe
Date: 2005-03-31 15:37:39 -0700 (Thu, 31 Mar 2005)
New Revision: 204

Modified:
   trunk/admin/translate.jsp
Log:
Added UTF-8 support in translate.jsp


Modified: trunk/admin/translate.jsp
===================================================================
--- trunk/admin/translate.jsp	2005-03-31 21:15:16 UTC (rev 203)
+++ trunk/admin/translate.jsp	2005-03-31 22:37:39 UTC (rev 204)
@@ -1,3 +1,7 @@
+<%@ page
+    language="java"
+    contentType="text/html;charset=utf-8"
+%>
 <%@ page import="java.util.Vector" %>
 <%@ page import="java.util.Properties" %>
 <%@ page import="java.io.File" %>
@@ -26,6 +30,7 @@
 				String key = (String)pageTags.get(i);
 				String value = (String)request.getParameter("t"+Integer.toString(i));
 				if ((key != null) && (value != null)) {
+					value = new String(value.getBytes("iso8859-1"), "UTF-8");
 					locale.setProperty(""+key.hashCode(), value);
 				}
 			}



More information about the sword-cvs mailing list