Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Hex regex fails in subroutine

by ikegami (Patriarch)
on Oct 06, 2023 at 16:13 UTC ( [id://11154839] : note . print w/replies, xml ) Need Help??


in reply to Re: Hex regex fails in subroutine
in thread Hex regex fails in subroutine

I would also work with the decoded strings. But I wouldn't have a table. If you have to use entities because you can't handle UTF-8, it make no sense to encode a subset only a subset of Unicode using entities. You should encode every non-ASCII Code Point.

See HTML::Entities's encode_entities_numeric.