develooper Front page | perl.perl5.porters | Postings from January 2020

Re: “strict” strings?

Thread Previous | Thread Next
Leon Timmermans
January 6, 2020 22:53
Re: “strict” strings?
Message ID:
On Mon, Jan 6, 2020 at 5:06 PM Felipe Gasper <> wrote:
> And won’t code that follows `perlunitut`’s prescribed workflow already fit that perfectly well?
> undecode()d == binary == !SVfUTF8

This should generally be true, but it is actually legal for it to have
the flag set (as long as it doesn't contain codepoints > 0xFF)

> decode()d == character == SVfUTF8

A decoded string may or may not have the SVfUTF8 flag set. This is not
something you should assume.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About