Hi all,<br><br>I need to parse feeds and post the data to SOLR.I want the special characters(Unicode char) to be posted as numerical representation,<br><br>For eg,<br><b>'</b> --> &#8217; (for which HTML equivalent is &rsquo;)<br>
I used BeautifulSoup,which seems to be allowing conversion from "&#xxxx;"( numeric values )to unicode characters as follow,<br><br><i>hdes=str(BeautifulStoneSoup(strdesc, convertEntities=BeautifulStoneSoup.HTML_ENTITIES))
<br>xdesc=str(BeautifulStoneSoup(hdes, convertEntities=BeautifulStoneSoup.XML_ENTITIES))</i><br><br>But i want <u><i>numerical representation of unicode characters.</i></u><br>I also want to convert html representation like &rsquo; to its numeric equivalent &#8217;<br>
<br>Thanks in advance.<br><br><u><i>Note:</i></u><br clear="all">The reason for the above requirement is i need a standard way to post to SOLR to avoid errors.<br>-- <br>Yours,<br>S.Selvam<br>