Hi
I have a really simple question, I think. I am POSTing a string that a user
enters from JavaScript with a single quote in it to a Java servlet, and then
using that string to construct a iText Phrase object. When I add the phrase to
my document, the string ends with the single quote, and no more of the string
is seen
for example--
"Josh's house"
would only be added to the document as
"Josh"
What am I missing about adding strings with single quotes? Should I escape them
using Javascript escape()? If so I would get a string like "Joshes%27s house"
and how should I unescape the string in Java once they are posted (should I use
StringEscapeUtils.unescapeEcmascript()? or some other method?)
thanks in advance
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php