diff --git a/Tools/AGSHtml.m b/Tools/AGSHtml.m index 06c260705..ebc95a8a6 100644 --- a/Tools/AGSHtml.m +++ b/Tools/AGSHtml.m @@ -1259,6 +1259,11 @@ static NSMutableSet *textNodes = nil; [buf appendString: indent]; [buf appendString: @"\n"]; [self incIndent]; + + /** charset/encoding should be in first 1024 bytes, so before title */ + [buf appendString: indent]; + [buf appendString: @"\n"]; + children = firstElement(children); [buf appendString: indent]; [buf appendString: @""];