fix wrong title encoding at opennet.ru

git-svn-id: svn://kolibrios.org@7056 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2017-10-06 17:50:03 +00:00
parent da7ba195ec
commit 47b22ed331

View File

@ -295,8 +295,10 @@ void TWebBrowser::SetStyle() {
debugln("Document has no information about encoding, UTF will be used");
}
if (opened) {
ChangeCharset(charsets[cur_encoding], "CP866", #header);
sprintf(#header, "%s - %s", #header, #version);
if (!strcmp(#header, #version)) {
ChangeCharset(charsets[cur_encoding], "CP866", #header);
sprintf(#header, "%s - %s", #header, #version);
}
DrawTitle(#header);
}
return;