-- StartHTML = byte count to just before in this case, could be a more complex header -- EndHTML = byte count to the last byte, not counting the extra NUL -- StartFragment = byte count just after the -- EndFragment = byte count just before the -- Notice that byte count must include the line feed, -- if DOS format is used must count LF by 2 -- Notice thatcharacter encoding is UTF-8, -- so if string has extended characters must converto to UTF-8 before copying -- Tested on Windows html = [[Version:0.9 StartHTML:000084 EndHTML:000242 StartFragment:000163 EndFragment:000207