In .ASP I am using Server.HTMLEncode method to replace the special
charecters to HTML equalant charecters. How do I replace the special chars
to XML safe chars. Is there any new methods or custom functions available.
Thanks in advance.
We are doing an application which involves RTF data being transferred
to and from XML.That is i export the RTF data as XML dom elements text and
viceversa. When we are reading back the DomElements text, NEWLINE [ chr(13)
+ chr(10) ] charecter in RTF are getting converted to UTF-8 Newline
chr(10) ]. coz of this RTF is not interpretted properly.
When we paste a Image in RTF and export to XML, we cannot get back the
formated RTF as RTF control does not recognise other than ANSI encoding. As
a temporary solution we are finding the newline charcter[ chr(10) ] to
replacing with ANSI newline [ chr(13) + chr(10)]. But if you could suggest a
way to incorporate ANSI encoding it could solve it easily.
Please respond back
Anil Kumar and Raja Ramesh
11. XML encoding