News for hackers. Stuff that matters.
Re:Friends don't let friends export to CSV by Pikamander2 on Tuesday March 26, 2024 @03:48AM (#39825143)
I've been amazed by how much LibreOffice is at importing CSVs in a sane manner than Excel. Its CSV import prompt is nothing short of the gold standard and puts Excel to shame.

Also, even if the CSV format is completely valid, Excel will still find a way to misinterpret some of your cells in baffling ways, destroying the original data in the process if you don't notice it in time.

Re:Friends don't let friends export to CSV by prox on Tuesday March 26, 2024 @04:49AM (#39825522)
Heck yes, LibreOffice shines when it comes to that. Excel always threw me curveballs a lot.
Re:Friends don't let friends export to CSV by wiz21c on Tuesday March 26, 2024 @05:13AM (#39825683)
Yeah, I can complain about LO in many ways, but the way it opens CSV is much better than Excel. It was developed by a dev, that's for sure.
Re:Friends don't let friends export to CSV by nuc1e0n on Tuesday March 26, 2024 @06:31PM (#39833589)
The root cause of a lot of problems is that Excel's CSV import is garbage.

Someone should write a simple utility modelled on LibreOffice's CSV import dialog that reads in a CSV file and outputs its content as an XLSX file with all the cells formatted as text. Being as how XLSX files are just XML text in a renamed ZIP file and CSV is a very simple format such a project could be written over a weekend.

Network admins could then create a group policy to reassign the CSV file extension to open with the utility instead of Excel. I guess the utility could automatically open the generated XLSX in Excel as well.

This would fix so many data corruption issues across the whole world.

Microsoft themselves could even do this as a powertoy.

Re:Friends don't let friends export to CSV by smcin on Tuesday March 26, 2024 @09:28AM (#39827569)
Yes the LibreOffice CSV import dialog showing you a what-if preview of what you'd get as you play with different settings, is pure amazing.