Force ACSM files to be parsed using UTF8 locale

This commit is contained in:
Grégory Soutadé 2021-07-17 09:34:03 +02:00
parent 20b4e69c3e
commit b5eb0efd31
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@
#define ACS_SERVER "http://adeactivate.adobe.com/adept" #define ACS_SERVER "http://adeactivate.adobe.com/adept"
#endif #endif
#define LIBGOUROU_VERSION "0.3" #define LIBGOUROU_VERSION "0.3.1"
namespace gourou namespace gourou
{ {

View File

@ -460,7 +460,7 @@ namespace gourou
pugi::xml_document acsmDoc; pugi::xml_document acsmDoc;
if (!acsmDoc.load_file(ACSMFile.c_str(), pugi::parse_ws_pcdata_single|pugi::parse_escapes)) if (!acsmDoc.load_file(ACSMFile.c_str(), pugi::parse_ws_pcdata_single|pugi::parse_escapes, pugi::encoding_utf8))
EXCEPTION(FF_INVALID_ACSM_FILE, "Invalid ACSM file " << ACSMFile); EXCEPTION(FF_INVALID_ACSM_FILE, "Invalid ACSM file " << ACSMFile);
GOUROU_LOG(INFO, "Fulfill " << ACSMFile); GOUROU_LOG(INFO, "Fulfill " << ACSMFile);