[sword-svn] r267 - trunk/webapp
scribe at www.crosswire.org
scribe at www.crosswire.org
Mon Nov 20 13:59:39 MST 2006
Author: scribe
Date: 2006-11-20 13:59:39 -0700 (Mon, 20 Nov 2006)
New Revision: 267
Modified:
trunk/webapp/bookdisplay.jsp
Log:
Fixed browsing with UTF-8
Modified: trunk/webapp/bookdisplay.jsp
===================================================================
--- trunk/webapp/bookdisplay.jsp 2006-11-15 04:39:11 UTC (rev 266)
+++ trunk/webapp/bookdisplay.jsp 2006-11-20 20:59:39 UTC (rev 267)
@@ -66,7 +66,7 @@
String []nodes = request.getParameterValues((i>0)?"close":"open");
if (nodes != null) {
for (int j = 0; j < nodes.length; j++) {
- String node = nodes[j];
+ String node = new String(nodes[j].getBytes("iso8859-1"), "UTF-8");
if (node != null) {
if (i>0) {
bookTreeOpen.remove(node);
@@ -266,7 +266,7 @@
linkRef = rootTreeKey + "/" + children[0];
}
- out.print(" <a href=\"bookdisplay.jsp?gbsEntry=" + URLEncoder.encode(linkRef) + "#cv\">" + localName + "</a>");
+ out.print(" <a href=\"bookdisplay.jsp?gbsEntry=" + URLEncoder.encode(new String(linkRef.getBytes("iso8859-1"), "UTF-8")) + "#cv\">" + localName + "</a>");
out.print("</li>\n");
}
More information about the sword-cvs
mailing list