From: Václav Slavík Date: Sat, 17 Jul 2004 21:13:36 +0000 (+0000) Subject: use corrent charset for page title in ANSI builds X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/140ba0677858bd41040308633a93a501c844875e 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 --- diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index ee1e782205..5869781848 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -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); } }