portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portals-bridges/perl/src/java/org/apache/portals/bridges/perl PerlPortlet.java
Date Thu, 12 May 2005 17:11:24 GMT
taylor      2005/05/12 10:11:24

  Modified:    portals-bridges/perl/src/java/org/apache/portals/bridges/perl
                        PerlPortlet.java
  Log:
  support UTF-8 encoding in Perl Portlet
  
  Revision  Changes    Path
  1.8       +6 -3      jakarta-jetspeed-2/portals-bridges/perl/src/java/org/apache/portals/bridges/perl/PerlPortlet.java
  
  Index: PerlPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/perl/src/java/org/apache/portals/bridges/perl/PerlPortlet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- PerlPortlet.java	21 Mar 2005 17:31:11 -0000	1.7
  +++ PerlPortlet.java	12 May 2005 17:11:24 -0000	1.8
  @@ -126,7 +126,7 @@
       RewriterController	rewriteController = null;
       
       /** Default encoding */
  -    public String defaultEncoding = "iso-8859-1";
  +    public String defaultEncoding = "UTF-8";
       
       
       public void init(PortletConfig config) throws PortletException
  @@ -385,7 +385,10 @@
   				
   				// Get stdout of process and create a buffered reader
   				InputStream in = proc.getInputStream();
  -				BufferedReader perlResult = new BufferedReader(new InputStreamReader(in));
  +				InputStreamReader isr = new InputStreamReader(in, "UTF-8");
  +				//String enc = isr.getEncoding();
  +				//System.out.println("perl-encoding = " + enc);
  +				BufferedReader perlResult = new BufferedReader(isr);
   				StringBuffer page = new StringBuffer();
   				
   				//Wait until proc is done
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message