[sword-svn] r187 - trunk/examples

scribe at crosswire.org scribe at crosswire.org
Tue Feb 1 02:55:00 MST 2005


Author: scribe
Date: 2005-02-01 02:54:59 -0700 (Tue, 01 Feb 2005)
New Revision: 187

Modified:
   trunk/examples/lookup.jsp
   trunk/examples/search.jsp
Log:
Fixed a few examples to display better


Modified: trunk/examples/lookup.jsp
===================================================================
--- trunk/examples/lookup.jsp	2005-01-18 10:52:54 UTC (rev 186)
+++ trunk/examples/lookup.jsp	2005-02-01 09:54:59 UTC (rev 187)
@@ -21,7 +21,7 @@
 	book.setKeyText("jn3:16");
 %>
 <p>The <%= book.getDescription() %>'s entry for <%= book.getKeyText() %> is:</p>
-<p><%= new String(book.getRenderText().getBytes(), "UTF-8") %></p>
+<p><%= new String(book.getRenderText().getBytes("iso8859-1"), "UTF-8") %></p>
 
 
 </body>

Modified: trunk/examples/search.jsp
===================================================================
--- trunk/examples/search.jsp	2005-01-18 10:52:54 UTC (rev 186)
+++ trunk/examples/search.jsp	2005-02-01 09:54:59 UTC (rev 187)
@@ -9,7 +9,7 @@
 
 <%
 	SWMgr mgr = SwordOrb.getSWMgrInstance(session);
-	SWModule book = mgr.getModuleByName("KJV");
+	SWModule book = mgr.getModuleByName("NASB");
 %>
 
 <html>
@@ -35,7 +35,7 @@
 		book.setKeyText(results[i].key);
 %>
 
-<tr><td><%= book.getKeyText() %></td><td><%= new String(book.getRenderText().getBytes(), "UTF-8") %></td></tr>
+<tr><td><%= book.getKeyText() %></td><td><%= new String(book.getRenderText().getBytes("iso8859-1"), "UTF-8") %></td></tr>
 
 <%
 	}



More information about the sword-cvs mailing list