lua-users home
lua-l archive

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


> > The null character ('\0' in C) is represented in Unicode as a 
> > single, zero 
> > byte. 
> 
> I believe it's a null word, not byte.

In the UTF-8 encoding it is a null byte/octet. All the ASCII characters 
(0-127) are represented as one byte, hence maintaining backwards compatibility 
with ASCII.

The null byte occurs in no other situation, even with the multi-byte 
characters.

Steven Murdoch.