From b5eb0efd3153b722252e257a2949b1a526b8b09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 17 Jul 2021 09:34:03 +0200 Subject: [PATCH] Force ACSM files to be parsed using UTF8 locale --- include/libgourou.h | 2 +- src/libgourou.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libgourou.h b/include/libgourou.h index 628a63b..1546e1c 100644 --- a/include/libgourou.h +++ b/include/libgourou.h @@ -40,7 +40,7 @@ #define ACS_SERVER "http://adeactivate.adobe.com/adept" #endif -#define LIBGOUROU_VERSION "0.3" +#define LIBGOUROU_VERSION "0.3.1" namespace gourou { diff --git a/src/libgourou.cpp b/src/libgourou.cpp index 226cdf6..3843932 100644 --- a/src/libgourou.cpp +++ b/src/libgourou.cpp @@ -460,7 +460,7 @@ namespace gourou 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); GOUROU_LOG(INFO, "Fulfill " << ACSMFile);