htmlSaveFileEnc is available since version 1.0.
Prototype:
number htmlSaveFileEnc(string filename, number cur, string encoding)
Parameters
filename
the filename (or URL)
cur
the HTML document handle
encoding
the document encoding
Description:
Dump an HTML document to a file using a given encoding.
Return value:
Returns the number of byte written or -1 in case of failure.