X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/198d7c6cb9f892732037c017b448d3dd9e258a55..a66136e9aa9c8a33b7ecfe39a5e4c523972486ab:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index f8f5c34931..4986a9f649 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -293,9 +293,14 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE") tag.GetBeginPos(), tag.GetEndPos1()-tag.GetBeginPos()); #if !wxUSE_UNICODE && wxUSE_WCHAR_T - wxCSConv conv(m_WParser->GetInputEncoding()); - title = wxString(title.wc_str(conv), wxConvLocal); -#endif + const wxFontEncoding enc = m_WParser->GetInputEncoding(); + if ( enc != wxFONTENCODING_DEFAULT ) + { + // need to convert to the current one + title = wxString(title.wc_str(wxCSConv(enc)), wxConvLocal); + } +#endif // !wxUSE_UNICODE + title = m_WParser->GetEntitiesParser()->Parse(title); winIface->SetHTMLWindowTitle(title);