]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_layout.cpp
wx-config symlink creation fix
[wxWidgets.git] / src / html / m_layout.cpp
index ee1e782205c6c00608f6664021ca8084d5d50f22..1d3c5f675c42412d6335cb60943dc57fc47f4f2c 100644 (file)
@@ -298,6 +298,10 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE")
                 wxString title = m_WParser->GetSource()->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);
             }
                 title = m_WParser->GetEntitiesParser()->Parse(title);
                 wfr->OnSetTitle(title);
             }