note
vsespb
<blockquote>
in your first case you have a properly formatted Perl string that contains UTF characters
</blockquote>
Yes
<blockquote>
but in the second you have a UTF-8 byte string, not a character string.
</blockquote>
No. Second case does look like UTF-8 character string, because it prints "UTF IS ON" and "LENGTH DIFFERS"
1032959
1032975