in reply to Re: sring encode problem (hexadecimal)
in thread sring encode problem (hexadecimal)
#!/usr/bin/perl $string="€"; $string = s/([^\x00-\xFF])/sprintf "&#x%x;", $1/eg; # Encode print $string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sring encode problem (hexadecimal)
by JavaFan (Canon) on Jan 19, 2011 at 11:46 UTC | |
by courierb (Novice) on Jan 20, 2011 at 05:03 UTC | |
by ikegami (Patriarch) on Jan 20, 2011 at 08:14 UTC |