mirror of
https://github.com/itflow-org/itflow
synced 2026-12-05 10:39:00 +00:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user