1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 09:45:36 +00:00

Changed decoding code page from ISO-8859-1 to WINDOWS-1252

This commit is contained in:
Armin Preiml 2010-08-02 13:22:50 +02:00
parent 389a28a836
commit 986325b3b2

View file

@ -618,13 +618,13 @@ public:
return convertToUTF8(res);
}
// Convert a string from ISO-8859-1 encoding to UTF-8
// Convert a string from the encoding used by Morrowind to UTF-8
std::string convertToUTF8(std::string input)
{
std::string output = "";
//create convert description
iconv_t cd = iconv_open("UTF-8", "ISO-8859-1");
iconv_t cd = iconv_open("UTF-8", "WINDOWS-1252");
if (cd == (iconv_t)-1) //error handling
{