Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Safely removing Unicode zero-width spaces and other non-printing charactersby haukex (Archbishop) |
on Dec 04, 2019 at 19:11 UTC ( [id://11109669]=note: print w/replies, xml ) | Need Help?? |
in HTML, it is possible to insert codes that produce UTF characters on the screen That's a possibility. However, there are also escape codes to allow representing arbitrary Unicode characters, such as "\N{U+NNNN}", which are implemented natively in Perl. I would write a perl sub that replaces all these specific characters with the HTML equivalent first No need to write a function yourself: HTML::Entities.
In Section
Seekers of Perl Wisdom
|
|