Re: Unicode strings and invalid codepoints

Chris Angelico <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <CAPTjJmrC8TDQzjvtROGNEVY0xnw3VyU3Doxf=urxC81wbf9sCQ@mail.gmail.com>
On Mon, Mar 9, 2015 at 7:08 PM, Martin Bähr
<[email protected]> wrote:
> Excerpts from Chris Angelico's message of 2015-03-09 03:52:14 +0100:
>> Are there situations in which it's necessary to be able to store these
>> kinds of noncharacters in a string?
>
> strings may be just binary data.
> why should binary data in a string literal be an error?
>
> greetings, martin.

Indeed, so it's not safe to disallow anything 00-FF; but D800-DFFF
can't be binary data.

ChrisA
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.