™ not working with XML

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Sample HTML:

TM_SS1<html>
<head><title>HTML</title></head>
<body>Trademark&#8482;</body>
</html>

Save it as sample.html
In the browser you will see as shown beside.

Replace&#8482; with&#153;

Sample XML:

TM_SS2<html><head><title>HTML</title> </head> <body>Trademark&#8482; </body>
</html>

Save it as sample.xml
It will work fine.
Replace&#8482; with&#153;
It will not work.
 
Reason:
The code positions from 128 to 159 are reserved for control codes like DELETE, NEXT LINE, SINGLE GRAPHIC CHARACTER INTRODUCER etc and these are not allowed in decoded XML.In windows char set (Windows-1252) some of the octets from the range 128-159 are assigned to printable characters. But in ISO 8859-1 character set they are reserved for control codes.
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>