traveler has asked for the wisdom of the Perl Monks concerning the following question:
and I got these errors (the hex values change) when I added the switch/case.use Switch; use XML::Simple; ... my $xml = XMLin("file"); my $foo = $xml; # the xml is <foo>combo</foo> print "$foo\n"; # prints the correct value switch ($foo) { case /combo/ { print "found a combo\n"; } }
I tried turning on and off utf8, but it didn't help. What do I need to do?Malformed UTF-8 character (unexpected continuation byte 0x9c, with no +preceding start byte) in bitwise and (&) at C:/Perl/lib/Switch.pm line 257. Malformed UTF-8 character (unexpected continuation byte 0x90, with no +preceding start byte) in bitwise and (&) at C:/Perl/lib/Switch.pm line 257. Malformed UTF-8 character (unexpected continuation byte 0x92, with no +preceding start byte) in bitwise and (&) at C:/Perl/lib/Switch.pm line 257. Malformed UTF-8 character (unexpected continuation byte 0x9d, with no +preceding start byte) in bitwise and (&) at C:/Perl/lib/Switch.pm line 257. Malformed UTF-8 character (unexpected continuation byte 0x90, with no +preceding start byte) in bitwise and (&) at C:/Perl/lib/Switch.pm line 257.
Thanks, --traveler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple, Switch and UTF8 errors
by diotalevi (Canon) on Feb 02, 2004 at 18:55 UTC | |
|
Re: XML::Simple, Switch and UTF8 errors
by ysth (Canon) on Feb 02, 2004 at 21:45 UTC | |
by traveler (Parson) on Feb 02, 2004 at 22:14 UTC | |
by ysth (Canon) on Feb 02, 2004 at 23:29 UTC |