Blaz Gindiciosi wrote: ↑Mon Nov 04, 2024 5:52 pm
I've been working on a large .csv spreadsheet including Japanese characters and when I opened it this morning it appeared to be corrupt
CSV is a text format. It is
not a spreadsheet. There is no universal standard for CSV format, so one has to be aware that import/export problems can occur if applications uses different CSV conventions. Spreadsheets can import from CSV and export to CSV, but this must be done carefully. There are many opportunities for mistakes.
Blaz Gindiciosi wrote: ↑Mon Nov 04, 2024 7:04 pm
I've asked a colleague at work and it seems to be an issue with the .ods to .csv conversion.
So the data was at one point in an ODS spreadsheet. How was this spreadsheet created? Did you type in 1.67 megabytes of data? If not, then it must have originated from a different source. We do not know how this spreadsheet was created. Perhaps the process which created it was in error. Or perhaps the data was imported into it from a web page or text file.
Are you positive that the import was done correctly? If not, the ODS spreadsheet is garbage and you cannot proceed any farther. Hundreds of topics on the forum are created for difficulties caused by incorrect import of data into a spreadsheet from another source. If you are importing data I recommed that you read
[Tutorial] Text to Columns. The tutorial does not deal much with character encoding but that is another source of trouble. When importing you
must know what encoding was used for the input to Calc and then specify that in the Text Import dialog. Otherwise the imported data in the spreadsheet is garbage, and all further work is doomed to failure.
Next, if you want to create a CSV text file from your correctly created spreadsheet, that's fine, but
first save the ODS spreadsheet. Then you have a recovery point if the CSV creation is done incorrectly. Always keep the ODS spreadsheet until you have finished working on the project. As with input, you
must know what character encoding is needed by the external application which will be reading the CSV file. If you use the wrong encoding the other application will find that the CSV file contains garbage.
CSV text files are useful for experienced computer professionals. If that your project requires use of that format, and you are not one, then there's risk that the project will fail until you find one to help you.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).