|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Substring giving strange results on $1 with utf8by choroba (Cardinal) |
| on Aug 06, 2012 at 22:01 UTC ( [id://985845]=perlquestion: print w/replies, xml ) | Need Help?? |
|
choroba has asked for the wisdom of the Perl Monks concerning the following question:
Most honourable brothers and sisters in Perl. At work, we are having issues with substr. It returns strange values when called on the special variable $1. The following code creates the test script and runs it: The output is (tested in blead 5.17.3, on x86_64-linux-thread-multi): '�' = 'č' at č 'aař' = 'a' at aař 'č�' = 'č' at čDo you have any explanation? Should I submit a bugreport? Update: Thanks all, bugreport sent.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||