in reply to Re^3: sring encode problem (hexadecimal)
in thread sring encode problem (hexadecimal)
#use HTML::Entities; use HTML::Entities"encode_entities_numeric"; $string="€"; # ("€" expected out put result after encoding) $encoded = encode_entities_numeric($string); print $encoded;
it print out character "€" itself as if there is no encoding happened.#use HTML::Entities; use utf8 ; ########### use HTML::Entities"encode_entities_numeric"; $string="€"; # ("€" expected out put result after encoding) $encoded = encode_entities_numeric($string); print $encoded;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: sring encode problem (hexadecimal)
by JavaFan (Canon) on Jan 20, 2011 at 09:59 UTC | |
by courierb (Novice) on Jan 20, 2011 at 14:36 UTC | |
by JavaFan (Canon) on Jan 20, 2011 at 19:31 UTC |