#!/usr/bin/perl $string="€"; $string = s/([^\x00-\xFF])/sprintf "&#x%x;", $1/eg; # Encode print $string;
In reply to Re^2: sring encode problem (hexadecimal)
by courierb
in thread sring encode problem (hexadecimal)
by courierb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |