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

Re: ???strict??? strings?

Thread Previous | Thread Next
From:
Felipe Gasper
Date:
January 6, 2020 02:40
Subject:
Re: ???strict??? strings?
Message ID:
E1A46431-E87A-4770-A43E-A977A58802AD@felipegasper.com

>> The UTF8 flag doesn't mark a SV (with PV) as a character string.  A SV
>> (with PV) without the UTF8 flag may be a character string.
> 
> Just to clarify: such a “character string” can only contain code points 0-255, right? Whereas a character string *with* the UTF8 flag may contain any code point?

Follow-up question: does any binary/text-aware encoder (CBOR, Sereal, etc.) ever encode a non-UTF8-flag SV as text rather than binary?

-FG
Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About