Hey,

I'm having a bit of trouble figuring out some encoding details.  I'm using
Velocity on a site, and I've got a string with some double quote characters
in it: ".

If I send this string to velocity in simply a single variable, say,
$testString, then these quote characters come through completely raw
(they're not encoded into ").

However, if this string is part of a Java object, and I send them to
velocity via the object the " characters are encoded to "

So if I had:

String testString = "\"this string has some \" characters";
testObject.someString = "\"this string has some \" characters";

And I put them into velocity, in the same place in the template:

testString: $testString
<br>
testObject.someString: $testObject.someString

Then in the HTML generated I get this:

"this string has some " characters
&quot;this string has some &quot; characters

Is there a reason why this would happen in such a way?  And if so, are there
any docs on this stuff?  I've looked in the user guide but am no more
clueful.  I did browse a few months of mailing list archives but couldn't
find a search function.

Thanks

Si



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

Reply via email to