X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5448f38d7d97fe4e40503b5ed235625d099a5cb..166bcebb8e87aefb42de52d22d567a8fa316928d:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index 2464a5a9ce..1d3c5f675c 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -4,7 +4,7 @@ // Author: Vaclav Slavik // RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik -// Licence: wxWindows Licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation @@ -30,8 +30,11 @@ FORCE_LINK_ME(m_layout) - -#include // bsearch() +#ifdef __WXWINCE__ + #include "wx/msw/wince/missing.h" // for bsearch() +#else + #include // bsearch() +#endif //----------------------------------------------------------------------------- // wxHtmlPageBreakCell @@ -292,9 +295,15 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE") wxHtmlWindow *wfr = (wxHtmlWindow*)(m_WParser->GetWindow()); if (wfr) { - const wxString& src = *m_WParser->GetSource(); - wfr->OnSetTitle(src.Mid(tag.GetBeginPos(), - tag.GetEndPos1()-tag.GetBeginPos())); + wxString title = m_WParser->GetSource()->Mid( + tag.GetBeginPos(), + tag.GetEndPos1()-tag.GetBeginPos()); +#if !wxUSE_UNICODE + wxCSConv conv(m_WParser->GetInputEncoding()); + title = wxString(title.wc_str(conv), wxConvLocal); +#endif + title = m_WParser->GetEntitiesParser()->Parse(title); + wfr->OnSetTitle(title); } } return TRUE;