% var sCharset: string; function GetCompatibilityModeMeta(): string; var sVersion: string; begin Result := ''; sVersion := HndGeneratorInfo.GetCustomSettingValue('IECompatibilityMode'); if Copy(sVersion, 1, 3) = 'IE=' then Result := Format('', [sVersion]); end; begin // UTF-8 or project charset ? if HndGeneratorInfo.GetCustomSettingValue('UseCharsetForTopics') then begin // Use project charset HndGeneratorInfo.BOMOutput := False; HndGeneratorInfo.ForceOutputEncoding := True; sCharset := HndProjects.GetProjectCharsetAsHtml(); end else begin // Need BOM for UTF8 files HndGeneratorInfo.BOMOutput := True; sCharset := 'UTF-8'; end; %>