From 548bbe143b6860e72f608c407c9c3ee26fb73f25 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 27 Nov 2005 01:58:19 +0000 Subject: [PATCH] Replace non-ascii characters with escapes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/text/text.cpp | 6 +++--- samples/typetest/typetest.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/text/text.cpp b/samples/text/text.cpp index cb7961eeea..5647bcb927 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -925,14 +925,14 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) m_horizontal->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxNORMAL, false, _T(""), wxFONTENCODING_ISO8859_2)); - m_horizontal->AppendText(_T("®lu»ouèký kùò zbìsile èe¹tina «»")); + m_horizontal->AppendText(_T("\256lu\273ou\350k\375 k\371\362 zb\354sile \350e\271tina \253\273")); break; case '1': m_horizontal->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxNORMAL, false, _T(""), wxFONTENCODING_CP1251)); - m_horizontal->AppendText(_T("Ïðèâåò!")); + m_horizontal->AppendText(_T("\317\360\350\342\345\362!")); break; case '8': @@ -942,7 +942,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) #if wxUSE_UNICODE m_horizontal->AppendText(L"\x0412\x0430\x0434\x0438\x043c \x0426"); #else - m_horizontal->AppendText("ËÁÖÅÔÓÑ ÕÄÁÞÎÙÍ"); + m_horizontal->AppendText("\313\301\326\305\324\323\321 \325\304\301\336\316\331\315"); #endif } } diff --git a/samples/typetest/typetest.cpp b/samples/typetest/typetest.cpp index 38f1356d79..8a22895fc1 100644 --- a/samples/typetest/typetest.cpp +++ b/samples/typetest/typetest.cpp @@ -885,7 +885,7 @@ void MyApp::DoUnicodeDemo(wxCommandEvent& WXUNUSED(event)) textCtrl << _T("\nTest wchar_t to char (Unicode to ANSI/Multibyte) converions:"); wxString str; - str = _T("Robert Röbling\n"); + str = _T("Robert R\366bling\n"); printf( "\n\nConversion with wxConvLocal:\n" ); wxConvCurrent = &wxConvLocal; -- 2.47.2