diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index f44ce6d..10e79f1 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -3079,11 +3079,7 @@ bool MyFrame::openFile ( wxString& fileName, bool largeFile ) size_t finalBufferLen; std::string encoding; - if ( largeFile ) - { - encoding = "UTF-8"; - } - else if ( docBufferLen >= 4 && // UTF-32 BE + if ( docBufferLen >= 4 && // UTF-32 BE ( unsigned char ) docBuffer[0] == 0x00 && ( unsigned char ) docBuffer[1] == 0x00 && ( unsigned char ) docBuffer[2] == 0xFE &&