We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I setup a bunch of reports to upload using Notepad++ and the import failed.
After going through the CSVImporter.php, I find out that all \r are replaced with \n
Line 89 // Replace carriage return character $replacedata = preg_replace("/\r/","\n",$data);
As my lines end with \r\n, the modified data get \n\n at the end.
Removing the \r in my file, upload work perfectly.
Thx
The text was updated successfully, but these errors were encountered:
I think this is fixed in the latest code so should be fixed when 2.8 is released: https://github.com/ushahidi/Ushahidi_Web/blob/develop/application/libraries/CSVImporter.php#L89
Sorry, something went wrong.
No branches or pull requests
Hi,
I setup a bunch of reports to upload using Notepad++
and the import failed.
After going through the CSVImporter.php,
I find out that all \r are replaced with \n
Line 89
// Replace carriage return character
$replacedata = preg_replace("/\r/","\n",$data);
As my lines end with \r\n, the modified data get \n\n at the end.
Removing the \r in my file, upload work perfectly.
Thx
The text was updated successfully, but these errors were encountered: