in reply to Malformed UTF-8
update: output from that:use strict; use warnings; use Devel::Peek 'Dump'; my $token = "ba\x{f1}o"; utf8::upgrade($token); Dump($token); my $term = $token; # note: i have no clue what's in $term print "match\n" if $token =~ /^$term/i;
update2: changed code so that $token and $term are the same. does not influence the outcome at all.SV = PV(0x814d988) at 0x814d524 REFCNT = 1 FLAGS = (PADBUSY,PADMY,POK,pPOK,UTF8) PV = 0x8160848 "ba\303\261o"\0 [UTF8 "ba\x{f1}o"] CUR = 5 LEN = 6 match
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Malformed UTF-8
by spiros (Beadle) on May 15, 2007 at 17:10 UTC | |
by Joost (Canon) on May 15, 2007 at 17:12 UTC | |
by spiros (Beadle) on May 15, 2007 at 17:15 UTC | |
by Joost (Canon) on May 15, 2007 at 17:21 UTC | |
by spiros (Beadle) on May 15, 2007 at 17:33 UTC | |
|