diff --git a/src/text_file_writer.cpp b/src/text_file_writer.cpp index 32d6bcfdd..51b657e17 100644 --- a/src/text_file_writer.cpp +++ b/src/text_file_writer.cpp @@ -42,7 +42,7 @@ TextFileWriter::TextFileWriter(agi::fs::path const& filename, std::string encodi { if (encoding.empty()) encoding = OPT_GET("App/Save Charset")->GetString(); - if (boost::iequals(encoding, "utf-8")) { + if (!boost::iequals(encoding, "utf-8")) { conv = agi::make_unique("utf-8", encoding.c_str(), true); newline = conv->Convert(newline); }