in reply to Re^4: sring encode problem (hexadecimal)
in thread sring encode problem (hexadecimal)
#!/usr/bin/perl use 5.010; use strict; use warnings; use HTML::Entities qw[encode_entities_numeric]; my $string = "\x{20AC}"; my $encoded = encode_entities_numeric $string; say $encoded; __END__ €
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: sring encode problem (hexadecimal)
by courierb (Novice) on Jan 20, 2011 at 14:36 UTC | |
by JavaFan (Canon) on Jan 20, 2011 at 19:31 UTC |