[stringtemplate-interest] A problem with a variable name
Johannes Luber
jaluber at gmx.de
Thu Mar 12 13:33:35 PDT 2009
José María Ruiz schrieb:
> Hi.
>
> I've an object (c#) with a property named "Categoría" (Category in
> english).
>
> When I try to access it in a template, $object.Categoría$, as soon as
> StringTemplate
> find the unicode character "í" it stops interpreting.
>
> What can I do to have unicode characters in the names of my clases and
> variables?
>
> Cheers.
>
As StringTemplate is built upon ANTLR 2.7.7, which supports only ASCII,
I doubt that there is something you can do beyond adding/renaming to
English names. Seeing that you are using the C# version of ST, the for
now unreleased ST 3.2 may be using ANTLR 3.x, but that's pure
speculation on the fact that the creator did finish a version 3
conversion of the ANTLR grammar as well a C# conversion of the ANTLR
tool. But he has to (not) confirm this himself.
Johannes
More information about the stringtemplate-interest
mailing list