declare charset static to utf-8

This commit is contained in:
Riccardo Mottola 2024-08-22 14:32:39 +02:00
parent 550facb17f
commit c8e2d51c8c

View file

@ -1259,6 +1259,11 @@ static NSMutableSet *textNodes = nil;
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<head>\n"]; [buf appendString: @"<head>\n"];
[self incIndent]; [self incIndent];
/** charset/encoding should be in first 1024 bytes, so before title */
[buf appendString: indent];
[buf appendString: @"<meta charset=\"utf-8\">\n"];
children = firstElement(children); children = firstElement(children);
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<title>"]; [buf appendString: @"<title>"];