use Encode; my $string=Encode::decode('UTF-16LE',$data_from_google); $string=~/what you want/;
from_to is the wrong function to use. It converts between byte strings, but to correctly work with regexp you need character strings, so you need to use decode
--
dakkar - Mobilis in mobile
Most of my code is tested...
In reply to Re^3: Unicode and Regexps: convert or am I missing something?
by dakkar
in thread Unicode and Regexps: convert or am I missing something?
by newrisedesigns
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |