nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mysterious c0 80


From: Ralph Corderoy
Subject: Re: mysterious c0 80
Date: Tue, 02 Jan 2024 13:56:53 +0000

Hi Michael,

> hexdump of this draft folder before I hit send:
>
> 0000520 2074 6f66 2072 6874 7461 0a2e 430a 756f
> 0000530 646c 6220 2e65 0a0a 000a
>
> Note 00 0a.

If one wrongly encodes NUL as two-byte UTF-8, intended for U+0080 to
U+7fff, one gets c0 80.  This is the bastard
https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8

-- 
Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]