]> git.saurik.com Git - wxWidgets.git/commitdiff
use corrent charset for page title in ANSI builds
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 17 Jul 2004 21:13:36 +0000 (21:13 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 17 Jul 2004 21:13:36 +0000 (21:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/m_layout.cpp

index ee1e782205c6c00608f6664021ca8084d5d50f22..58697818484545be74d73ece4cf0c65003adc6bb 100644 (file)
@@ -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);
             }
         }