Re: Unicode to symbol conversion
Sandip Bhattacharya <[email protected]> Thu, 9 Sep 2004 23:10:32 +0530
| Newsgroups | gmane.user-groups.linux.delhi.devel |
|---|---|
| Organization | Puroga Technologies Pvt. Ltd. |
| Message-ID | <[email protected]> |
On Thursday 09 Sep 2004 6:20 pm, Gurpreet Sachdeva wrote: > I need to replace Unicodes in an HTML/XML File to the appropriat symbols. I > tried to use Encode qw/encode decode/; but no success. > > I have got an XML file where codes like © ª « etc are given. > I want to convert them to © ª « respectively. Any pointer to a good > document or any suggestion is most welcome. > Are you trying to make it work only under Perl? PHP has a number of native functions to convert htmlentities to and from their codes. The function htmlentities converts TO and html_entity_decode() converts FROM HTML entities to their character equivalent. - Sandip -- Sandip Bhattacharya * Puroga Technologies * sandip-/[email protected] Work: http://www.puroga.com * Home: http://www.sandipb.net PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3 Too few computrons available.