CData Error (Java JDOM)

E

Elton John

I'm using JDK 1.4.2 and JDOM 9.

Is there a restriction on what can be put into CDATA sections ? IE is
failing on the registered trademark sign (r in a circle). It might not be IE
but that's all I have here. Is there a restriction on what I can put into
CDATA ?
 
R

Richard Tobin

Elton John said:
Is there a restriction on what can be put into CDATA sections ? IE is
failing on the registered trademark sign (r in a circle). It might not be IE
but that's all I have here. Is there a restriction on what I can put into
CDATA ?

You can certainly put that character in a CDATA section, but because
you can't use character references in a CDATA section you can only do
it if the encoding you are using includes that character. However,
most encodings (eg latin-1) do include it, so I doubt that's the
problem.

-- Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top