Adithyakiran.k has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I need help in writing a perl program to convert an xml file which has utf8 characters to their respective named entities for some files and to their numbered entities for some other files.
for example, below is some text from input file
<element1> <p> Some sample text with “special characters” in the file </p> </element1>
Below is sample output I am looking for Case 1: (Numbered entities)
<element1> <p> Some sample text with “special characters” in the file </p> </element1>
Below is sample output I am looking for Case 2: (Named entities)
<element1> <p> Some sample text with “special characters” in the file </p> </element1>
Thanks in Advance !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting utf8 characters to named and numeric entities
by tobyink (Canon) on Jan 21, 2014 at 10:16 UTC | |
|
Re: Converting utf8 characters to named and numeric entities
by moritz (Cardinal) on Jan 21, 2014 at 14:37 UTC |