diff --git a/components/esm/esm_writer.cpp b/components/esm/esm_writer.cpp index 5bb9e286d..113f31ae9 100644 --- a/components/esm/esm_writer.cpp +++ b/components/esm/esm_writer.cpp @@ -162,7 +162,7 @@ void ESMWriter::writeHString(const std::string& data) ptr[data.size()] = '\0'; // Convert to UTF8 and return - std::string ascii = ToUTF8::getASCII(m_encoding); + std::string ascii = ToUTF8::getLegacyEnc(m_encoding); write(ascii.c_str(), ascii.size()); } diff --git a/components/to_utf8/to_utf8.cpp b/components/to_utf8/to_utf8.cpp index 0c7ea388e..6f0ed8bfd 100644 --- a/components/to_utf8/to_utf8.cpp +++ b/components/to_utf8/to_utf8.cpp @@ -291,7 +291,7 @@ static void copyFromArray2(const char *arr, char*& chp, char* &out) *(out++) = ch; // Could not find glyph, just put whatever } -std::string ToUTF8::getASCII(ToUTF8::FromType to) +std::string ToUTF8::getLegacyEnc(ToUTF8::FromType to) { // Pick translation array const char *arr; diff --git a/components/to_utf8/to_utf8.hpp b/components/to_utf8/to_utf8.hpp index 1a6a077be..69e9fc92c 100644 --- a/components/to_utf8/to_utf8.hpp +++ b/components/to_utf8/to_utf8.hpp @@ -21,7 +21,7 @@ namespace ToUTF8 // Convert the previously written buffer to UTF8 from the given code // page. std::string getUtf8(FromType from); - std::string getASCII(FromType to); + std::string getLegacyEnc(FromType to); } #endif