Browse code

admin/backup_utf8.php: Fix double-encoding database dump in script - was doing ISO-8859-1 -> UTF-8 -> ISO-8859-1

Clarissa Walker authored on 2026/09/20 09:38:16
Showing 1 changed files
... ...
@@ -65,7 +65,7 @@ function datadump ($table) {
65 65
 		foreach($t AS $field => $value) {
66 66
 			//$value = utf8_encode (escapestring($value) );
67 67
 			$value = escapestring($value);
68
-			$value = mb_convert_encoding($value, 'UTF-8', 'ISO-8859-1');
68
+			$value = mb_convert_encoding($value, 'UTF-8');
69 69
 			$value = str_replace("\n","\\n",$value);
70 70
 			if (isset($value)) $row[$field] = "\"$value\"";
71 71
 			else $row[$field] = "\"\"";