mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-06 02:11:35 +00:00
Changed decoding code page from ISO-8859-1 to WINDOWS-1252
This commit is contained in:
parent
389a28a836
commit
986325b3b2
1 changed files with 2 additions and 2 deletions
|
@ -618,13 +618,13 @@ public:
|
||||||
return convertToUTF8(res);
|
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 convertToUTF8(std::string input)
|
||||||
{
|
{
|
||||||
std::string output = "";
|
std::string output = "";
|
||||||
|
|
||||||
//create convert description
|
//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
|
if (cd == (iconv_t)-1) //error handling
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue