fixed 2 encoding handling bugs in XRC/wxrcedit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -344,6 +344,9 @@ void EditorFrame::NewFile()
|
||||
m_Resource->SetRoot(new wxXmlNode(wxXML_ELEMENT_NODE, _("resource")));
|
||||
|
||||
m_Resource->SetFileEncoding("utf-8");
|
||||
#if !wxUSE_UNICODE
|
||||
m_Resource->SetEncoding(wxLocale::GetSystemEncodingName());
|
||||
#endif
|
||||
|
||||
m_Resource->GetRoot()->AddProperty(_T("version"),
|
||||
WX_XMLRES_CURRENT_VERSION_STRING);
|
||||
|
Reference in New Issue
Block a user