in reply to Re^2: Convert HTML symbols to equivalent Unicode
in thread Convert HTML symbols to equivalent Unicode

I need Exactly Unicode equivalent as U00AE.

That doesn't make any sense. Please speak in terms of HTML entities, Unicode characters, U+xxxx notation and perhaps UTF-8 encoding.

For example,

>perl -MHTML::Entities=decode_entities -e"printf qq{U+%04X\n}, ord(dec +ode_entities('®'))" U+00AE

But then again, you also mentioned JSON. Whatever JSON module will handle serializing the character as "\u00AE" or similar from from the character U+00AE, so all you only need is decode_entities.