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.
In reply to Re^2: Hex regex fails in subroutine
by ikegami
in thread Hex regex fails in subroutine
by Version7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |