There is no encoding property for the context.

You need to change the encoding for the output file.

If the source template itself has latin characters, you'll also want
to specify that encoding with getTemplate(resourceName, encoding).


WILL

On 12/12/06, Marta Gascó Julio <[EMAIL PROTECTED]> wrote:

I'm trying to change the encoding of VelocityContext. I would like to do 
something like that:

VelocityContext lNVContext = new VelocityContext();
lNVContext.CurrentResource.Encoding = "ISO-8859-1";

But while tracing, CurrentResource is always null. Do you know any way of changing the 
encoding before merge? I would like to use in my templates accents and "ñ" 
(letter used in spanish)

Thanks in advance for your help.

Marta Gascó Julio
Transformation Engines Coordinator
[EMAIL PROTECTED]

CARE TECHNOLOGIES, S.A.
Tel. +34 96 643 5555 - Fax. +34 96 643 5554
www.olivanova.com
Grupo de Empresas CHG


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to