tbusch has asked for the wisdom of the Perl Monks concerning the following question:
yields#!/usr/bin/perl use strict ; my $string = "cl\xe9ment"; utf8::upgrade($string); if (utf8::is_utf8($string)) { print "is utf8\n"; } if (utf8::valid($string)) { print "is valid utf8\n"; } if ($string =~ m/\xe9/) { print "match \\xE9\n"; } if ($string =~ m/\x{c3a9}/) { print "match \\xC3A9\n"; }
instead ofis utf8 is valid utf8 match \xE9
Is this a bug ? Why is the latin e letter with acute not getting upgraded to UTF-8 ?is utf8 is valid utf8 match \xC3E9
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: utf8::upgrade weirdness
by ysth (Canon) on Aug 08, 2006 at 17:55 UTC | |
by graff (Chancellor) on Aug 09, 2006 at 03:24 UTC | |
by ysth (Canon) on Aug 09, 2006 at 17:32 UTC | |
|
Re: utf8::upgrade weirdness
by graff (Chancellor) on Aug 09, 2006 at 03:11 UTC |