Replace non-ascii characters with escapes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2005-11-27 01:58:19 +00:00
parent c1d8296a78
commit 548bbe143b
2 changed files with 4 additions and 4 deletions

View File

@ -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
}
}

View File

@ -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;