mshtml: Use UTF-8 encoding in NewURI by default.

This commit is contained in:
Jacek Caban 2014-09-26 15:38:59 +02:00 committed by Alexandre Julliard
parent cf8eacf1c1
commit 857a35e2a7
1 changed files with 4 additions and 1 deletions

View File

@ -3343,7 +3343,10 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
}
}
MultiByteToWideChar(CP_ACP, 0, spec, -1, new_spec, sizeof(new_spec)/sizeof(WCHAR));
if(aOriginCharset && strcasecmp(aOriginCharset, "utf-8"))
FIXME("Unsupported charset %s\n", debugstr_a(aOriginCharset));
MultiByteToWideChar(CP_UTF8, 0, spec, -1, new_spec, sizeof(new_spec)/sizeof(WCHAR));
if(base_wine_uri) {
hres = combine_url(base_wine_uri->uri, new_spec, &urlmon_uri);