From 4660fb768616eca7438ff1ac54c57c9b146dfb2f Mon Sep 17 00:00:00 2001 From: Andrey Isupov Date: Wed, 12 Jul 2023 20:41:40 +0300 Subject: [PATCH] remove support utf8mb4 unicode --- modules/telegram/telegram.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/telegram/telegram.class.php b/modules/telegram/telegram.class.php index dd2bf46..8156a51 100644 --- a/modules/telegram/telegram.class.php +++ b/modules/telegram/telegram.class.php @@ -1880,12 +1880,12 @@ function saveData($data, $direction){ $rec["MESSAGE"] = 'Error: '.$data['curl_error_code'].' - '.$data['curl_error']; } - $rec["RAW"] = json_encode($data,JSON_UNESCAPED_UNICODE); + $rec["RAW"] = json_encode($data); try{ SQLInsert("tlg_history", $rec); } catch(Exception $e) { - registerError('telegram', sprintf('Exception in "%s" method: %s' . $e->getMessage(), json_encode($rec,JSON_UNESCAPED_UNICODE))); + registerError('telegram', sprintf('Exception in "%s" method: %s' . $e->getMessage(), json_encode($rec))); } } @@ -2053,8 +2053,8 @@ function dbInstall($data) { tlg_history: CREATED datetime tlg_history: DIRECTION int(3) unsigned NOT NULL DEFAULT '1' tlg_history: TYPE int(3) unsigned NOT NULL DEFAULT '1' - tlg_history: MESSAGE text COLLATE 'utf8mb4_unicode_ci' - tlg_history: RAW text COLLATE 'utf8mb4_unicode_ci' + tlg_history: MESSAGE text + tlg_history: RAW text COLLATE EOD; parent::dbInstall($data);