From 8ecddce4372bff51430c0e5bc2754776d7c64b67 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 27 Jun 2024 11:15:27 +1000 Subject: [PATCH] ensure utf-8 encoding --- app/DataMapper/Analytics/AccountPlatform.php | 4 ++-- app/DataMapper/Analytics/DbQuery.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/DataMapper/Analytics/AccountPlatform.php b/app/DataMapper/Analytics/AccountPlatform.php index 461553cfc588..141c3f279db2 100644 --- a/app/DataMapper/Analytics/AccountPlatform.php +++ b/app/DataMapper/Analytics/AccountPlatform.php @@ -54,8 +54,8 @@ class AccountPlatform extends GenericMixedMetric public function __construct($string_metric5, $string_metric6, $string_metric7) { - $this->string_metric5 = $string_metric5; - $this->string_metric6 = $string_metric6; + $this->string_metric5 = mb_convert_encoding($string_metric5, 'UTF-8'); + $this->string_metric6 = mb_convert_encoding($string_metric6, 'UTF-8'); $this->string_metric7 = $string_metric7; } } diff --git a/app/DataMapper/Analytics/DbQuery.php b/app/DataMapper/Analytics/DbQuery.php index 5b8dfeea9f7e..092313a12522 100644 --- a/app/DataMapper/Analytics/DbQuery.php +++ b/app/DataMapper/Analytics/DbQuery.php @@ -73,7 +73,7 @@ class DbQuery extends GenericMixedMetric $this->string_metric6 = $string_metric6; $this->double_metric2 = $double_metric2; $this->string_metric7 = $string_metric7; - $this->string_metric8 = $string_metric8; - $this->string_metric9 = $string_metric9; + $this->string_metric8 = mb_convert_encoding($string_metric8, "UTF-8"); + $this->string_metric9 = mb_convert_encoding($string_metric9, "UTF-8"); } }