@ -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());
}
@ -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;
@ -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