use corrent charset for page title in ANSI builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-07-17 21:13:36 +00:00
parent 7706daf38b
commit 140ba06778

View File

@@ -298,7 +298,14 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE")
wxString title = m_WParser->GetSource()->Mid(
tag.GetBeginPos(),
tag.GetEndPos1()-tag.GetBeginPos());
#if !wxUSE_UNICODE
wxCSConv conv(m_WParser->GetInputEncoding());
printf("'%s'\n", title.c_str());
title = wxString(title.wc_str(conv), wxConvLocal);
printf("'%s'\n", title.c_str());
#endif
title = m_WParser->GetEntitiesParser()->Parse(title);
printf("'%s'\n", title.c_str());
wfr->OnSetTitle(title);
}
}