You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Jon Stevens <jo...@latchkey.com> on 2001/04/14 10:51:56 UTC
Re: cvs commit:
jakarta-velocity/src/java/org/apache/velocity/runtime/parser Parser.jjt
on 4/13/01 7:50 PM, "geirm@apache.org" <ge...@apache.org> wrote:
> geirm 01/04/13 19:50:19
>
> Modified: src/java/org/apache/velocity/runtime/parser Parser.jjt
> Log:
> Added support for alternate character encoding in the inputstream's
> (templates...)
>
> Revision Changes Path
> 1.58 +31 -2
> jakarta-velocity/src/java/org/apache/velocity/runtime/parser/Parser.jjt
>
> Index: Parser.jjt
> ===================================================================
> RCS file:
> /home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/Parser.
> jjt,v
> retrieving revision 1.57
> retrieving revision 1.58
> diff -u -r1.57 -r1.58
> --- Parser.jjt 2001/03/05 11:46:36 1.57
> +++ Parser.jjt 2001/04/14 02:50:19 1.58
> @@ -120,7 +120,7 @@
> *
> * @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
> * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
> - * @version $Id: Parser.jjt,v 1.57 2001/03/05 11:46:36 jvanzyl Exp $
> + * @version $Id: Parser.jjt,v 1.58 2001/04/14 02:50:19 geirm Exp $
> */
> public class Parser
> {
> @@ -134,6 +134,11 @@
> */
> String currentTemplateName = "";
>
> + /**
> + * encoding for the input stream.
> + */
> + private String inputEncoding = "ISO-8859-1";
> +
Isn't there already a constant for that in the code somewhere?
-jon