From 140ba0677858bd41040308633a93a501c844875e Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 17 Jul 2004 21:13:36 +0000 Subject: [PATCH] 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 --- src/html/m_layout.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); } } -- 2.47.2