mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Changed decoding code page from ISO-8859-1 to WINDOWS-1252
This commit is contained in:
parent
389a28a836
commit
986325b3b2
@ -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…
x
Reference in New Issue
Block a user