Summary | Normalize utf8mb3 charset before mbstring for MariaDB 10.6 and newer |
Queue | Horde Framework Packages |
Type | Bug |
State | Unconfirmed |
Priority | 2. Medium |
Owners | |
Requester | jiri.reischig (at) ecn (dot) cz |
Created | 12/15/2022 (881 days ago) |
Due | |
Updated | 12/16/2022 (880 days ago) |
Assigned | |
Resolved | |
Milestone | |
Patch | Yes |
fork and should be incorporated to the FRAMEWORK_6 branches of Horde
proper.
https://www.ralf-lang.de/2022/08/15/maintaina-horde-utf-8-on-php-8/
I am currently swamped with end of year work but this will happen very soon.
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Normalize utf8mb3 charset before mbstring for MariaDB 10.6 and newer
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
recognized properly in Horde.
Problem is in calendar (kronolith), contacts (turba), etc.
I try modify String.php for "normalize" charsets for mbstring, but I
don't known if it right place for it.
--- /usr/share/pear/Horde/String.php 2022-12-14 18:03:07.231100525 +0100
+++ /usr/share/pear/Horde/String.orig.php 2022-12-14
16:52:08.029930071 +0100
@@ -157,12 +157,6 @@
/* Try mbstring. */
if (Horde_Util::extensionExists('mbstring')) {
-
- /* Normalize for utf8mb */
- $utf8mb = array('utf8mb3', 'utf8mb4', 'utf8');
- $from = str_ireplace($utf8mb, 'utf-8', $from);
- $to = str_ireplace($utf8mb, 'utf-8', $to);
-
try {
$out = @mb_convert_encoding($input, $to,
self::_mbstringCharset($from));
if (!empty($out)) {