in reply to HTML::Entities not encoding @ or .
...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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Entities not encoding @ or .
by Anonymous Monk on Feb 12, 2008 at 16:19 UTC | |
by punch_card_don (Curate) on Feb 12, 2008 at 16:53 UTC | |
by Anonymous Monk on Feb 14, 2008 at 12:53 UTC |