I do need more assistance and I guess this is a two part question.
Part 1 - I am not exactly sure what characters I need to replace, I see several characters for double quotes (I also am having trouble with single quotes and the dash) Why does JDOM or
java seem to only know about a \u0022?
Part 2 - The Code
When I do this:
Integer.toHexString( input.charAt(i))
I get this:
for a left double quote I get a "93"
for a right double quote I get a "94"
I have also seen the characters \u201C and \u201D listed as left and right double quotes.
I need all these and any other doulble quote characters to be \u0022.
The problem is that when I do this in my
String helper class:
validXml = validXml.replaceAll("\u201D", "\u0022") the \u0022 is interpreted as the closing quote for the second string and then there is a compile error.
Thanks again
Bryon