X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d5881b12d7c7eb14e3b651b186ef313c85ac18c..359878c33e86222a2156e25705ec97ab630a8763:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index ee1e782205..1d3c5f675c 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -298,6 +298,10 @@ 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()); + title = wxString(title.wc_str(conv), wxConvLocal); +#endif title = m_WParser->GetEntitiesParser()->Parse(title); wfr->OnSetTitle(title); }