diff --git a/workflow/engine/src/ProcessMaker/Model/CaseList.php b/workflow/engine/src/ProcessMaker/Model/CaseList.php index b6ee8bd01..3d7a09168 100644 --- a/workflow/engine/src/ProcessMaker/Model/CaseList.php +++ b/workflow/engine/src/ProcessMaker/Model/CaseList.php @@ -354,6 +354,10 @@ class CaseList extends Model } $content = file_get_contents($_FILES['file_content']['tmp_name']); try { + // Check if the content is a binary string and convert to a string + if (preg_match('~[^\x20-\x7E\t\r\n]~', $content) > 0) { + $content = mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true)); + } $array = json_decode($content, true); $tableName = $array['tableName'];