Hallo,
I've some encoding problems using velocity 1.4. I coded the following:
context.put("test", "Wildhünherstraße 5");
As you can see I use some german-specific-characters.
I use this in the template as follows:
<!-- $test -->
<!-- Wildhühnerstraße 6 -->
The output of the html page looks like this:
<!-- Wildh�nherstra�e 5 -->
<!-- Wildhühnerstraße 6 -->
The html page has the encoding UTF-8. I use the following initialization:
Properties props = loadConfiguration(config);
// define Logging
Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
"org.apache.velocity.runtime.log.SimpleLog4JLogSystem");
Velocity.setProperty("runtime.log.logsystem.log4j.category", logger.getName());
Velocity.setProperty("input.encoding", "UTF-8");
Velocity.setProperty("output.encoding", "UTF-8");
Velocity.setProperty("response.encoding", "UTF-8");
Velocity.init(props);
logger.info("Velocity initialized!");
Is somebody out there, how can help me? ;-)
Achim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]