thanks, the pointer got me thinking, turns out I was loading from xml, where the encoding is utf-8, however I realised I could just convert these into utf8/latin1 perls internal data representation. Is that understanding correct?
so when I use the following code things start working, if anyone has any other wisdom regarding exactly what is happening here that would be awesome.
utf8::decode($newOpMode); print length($newOpMode) . " $newOpMode ---" . length ($self->setT +heOpMode) . " " . $self->setTheOpMode."\n"; $return = 1 if ( (lc( $newOpMode )) eq "mitigate" );
http://perldoc.perl.org/utf8.html
http://perldoc.perl.org/perlunifaq.html
In reply to Re^2: panic: swash_fetch on passing a string to lc
by irishBatman
in thread panic: swash_fetch on passing a string to lc
by irishBatman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |