...not on the list...
Hmmm - so why is that when I do:
This outputs:foreach $val (keys %char2entity) { print "<br>$val => $char2entity{$val}\n"; }
Is %char2entity not the list of characters that are encoded by default?... <br>@ => @ ... <br>. => .
Answer to my own question - no, I don't think %char2entity is the list of characters to encode by default.
If I take Anonymous Monk's suggestion:
then every single character in my string gets encoded - without supplying any further information about what are the codes for these characters. In other words, it looks like %char2eneitty is just the list of all char-to-entity relations for reference, NOT the list of chars that shoud be encoded by default.encode($string, \000-\377)
In reply to Re: HTML::Entities not encoding @ or .
by punch_card_don
in thread HTML::Entities not encoding @ or .
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |