views:

67

answers:

1

Obviously the answer is no... right? The reason I ask is because I have this string defined in XML for an Android app:

<string name="foo"><![CDATA[<html><body><p>This%20is%20a%20test</p></body></html>]]></string>

All I do to the string is read it, and display in an HTML view. I would not have expected the %20s to be interpreted, yet they are. Is this the correct behaviour, or is Android being typically buggy?

+3  A: 

Is CDATA supposed to be URL-encoded?

No. The only rule of CDATA is that it can't contain a closing CDATA ]]> - everything else is fair game.

Pekka