diff --git a/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp b/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp index 125a0f61..d47d19e8 100644 --- a/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp +++ b/Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp @@ -935,7 +935,7 @@ void pfLocalizationDataMgr::IWriteText(const plFileName & filename, const plStri // we will try to pretty print it all so it's easy to read for the devs plStringStream fileData; - fileData << "\n"; // stores the xml we are going to write to the file (UTF-16 format) + fileData << "\n"; fileData << "\n"; fileData << plString::Format("\t\n", ageName.c_str()); @@ -977,7 +977,7 @@ void pfLocalizationDataMgr::IWriteText(const plFileName & filename, const plStri { // now spit the results out to the file hsStream *xmlStream = plEncryptedStream::OpenEncryptedFileWrite(filename); - xmlStream->Write(fileData.GetLength(), fileData.GetString().c_str()); + xmlStream->Write(fileData.GetLength(), fileData.GetRawBuffer()); xmlStream->Close(); delete xmlStream; }