[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Q] handling 0xC2A0 (space in utf8)
- From: "James Dennett" <james.dennett@...>
- Date: Thu, 16 Oct 2008 13:19:22 -0700
On Thu, Oct 16, 2008 at 1:05 PM, V S P <firstname.lastname@example.org> wrote:
> On the other hand, I am looking at it -- what if the text was
> created by a UTF-8 capable editor, would that editor do exactly
> the same thing as the web page: 0xC2A0? and if yes, then
> my compiler should support it.
No. A space in UTF-8 is encoded as a single byte, 0x20. More
generally, ASCII characters are unchanged when encoded as UTF-8.