CSV imports keep accented letters: csvTextToUtf8 reads an upload as UTF-8 whether it was saved as UTF-8, UTF-16, Windows-1252 or Mac Roman, used by every import window kind, bank statements on Expenses and Income, and the network IP and interface imports; tab separated files import; the import answer survives a bad byte; 26.12.6 changelog and CONTRIBUTING rule

This commit is contained in:
johnnyq
2026-12-04 11:55:35 -05:00
parent 76c572c67e
commit c4e486a652
7 changed files with 92 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ if (isset($_POST['import_check']) || isset($_POST['import_run'])) {
$answer = function (array $answer) {
header('Content-Type: application/json; charset=utf-8');
echo json_encode($answer);
echo json_encode($answer, JSON_INVALID_UTF8_SUBSTITUTE);
exit;
};