[Laszlo-checkins] r11373 - openlaszlo/trunk/laszlo-explorer

hqm@openlaszlo.org hqm at openlaszlo.org
Tue Oct 7 11:17:21 PDT 2008


Author: hqm
Date: 2008-10-07 11:17:20 -0700 (Tue, 07 Oct 2008)
New Revision: 11373

Modified:
   openlaszlo/trunk/laszlo-explorer/doc.jsp
Log:
Change 20081007-hqm-X by hqm at badtzmaru.home on 2008-10-07 14:07:25 EDT
    in /Users/hqm/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary:  update doc.jsp for i18n

New Features:

Bugs Fixed: LPP-7133

Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    
+ read files using utf8

Tests:



Modified: openlaszlo/trunk/laszlo-explorer/doc.jsp
===================================================================
--- openlaszlo/trunk/laszlo-explorer/doc.jsp	2008-10-07 17:47:10 UTC (rev 11372)
+++ openlaszlo/trunk/laszlo-explorer/doc.jsp	2008-10-07 18:17:20 UTC (rev 11373)
@@ -1,5 +1,5 @@
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 <%@ page pageEncoding="UTF-8"%>
@@ -53,7 +53,8 @@
 
         String htm = application.getRealPath(request.getParameter("src")+".htm");
         if (new File(htm).exists()) {
-            BufferedReader reader = new BufferedReader(new FileReader(htm));
+            InputStreamReader isr = new InputStreamReader(new FileInputStream(htm), "UTF-8");
+            BufferedReader reader = new BufferedReader(isr);
             String line;
             while ((line = reader.readLine()) != null) {
                 sb.append(line+"\n");



More information about the Laszlo-checkins mailing list