msxml3: Make utf-8 the default encoding.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2021-11-24 08:33:06 -08:00 committed by Alexandre Julliard
parent ba4838b0e6
commit 5260ab30cd
2 changed files with 4 additions and 1 deletions

View File

@ -2603,6 +2603,9 @@ static char *xmldoc_encoding(IXMLDOMDocument3 *doc)
IXMLDOMNode_Release(node);
}
if (!encoding && (encoding = heap_alloc(sizeof("UTF-8"))))
strcpy(encoding, "UTF-8");
return encoding;
}

View File

@ -6636,7 +6636,7 @@ static void test_save(void)
{
ReadFile(hfile, buffer, sizeof(buffer), &read, NULL);
ok(read != 0, "could not read file\n");
todo_wine ok(!memcmp(buffer, cheA, sizeof(cheA)-1), "got: %s\n", buffer);
ok(!memcmp(buffer, cheA, sizeof(cheA)-1), "got: %s\n", buffer);
CloseHandle(hfile);
DeleteFileA("test.xml");