Bug 132691 - FILESAVE: Default settings when saving the CSV file - corrupts localized text
Summary: FILESAVE: Default settings when saving the CSV file - corrupts localized text
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.3.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CSV-Dialog
  Show dependency treegraph
 
Reported: 2020-05-04 17:37 UTC by vitia444
Modified: 2021-05-11 20:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Many question-marks (152.82 KB, image/jpeg)
2020-05-04 17:37 UTC, vitia444
Details
"About" window (28.85 KB, image/png)
2020-05-04 17:41 UTC, vitia444
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vitia444 2020-05-04 17:37:16 UTC
Created attachment 160354 [details]
Many question-marks

Steps:
1. Create new document (without specifying anything)
2. Write some data (localized, e.g. Ukrainian)
3. Save as *.csv
4. Close document
5. Open saved document

Actual: many question-marks
Expected: entered text
Comment 1 vitia444 2020-05-04 17:41:32 UTC
Created attachment 160355 [details]
"About" window
Comment 2 vitia444 2020-05-04 17:44:52 UTC
Btw - the UTF-8 encoding from LibreOffice is read by Notepad++ as UTF-8-BOM, which is strange
Comment 3 V Stuart Foote 2020-05-04 19:20:30 UTC
When Save-as (rather than ODF Spreadsheet) and an export filter i.e. 'Text CSV (*.csv)' as here is selected--user must also use the 'Edit filter settings' checkbox to be offered a dialog to make an encoding selection.  

Otherwise the default UTF-8 of the GUI will apply. And the result may be a CSV text with strings that do not match a preferred text encoding--adjust the export filter settings to match the encoding and format needed.
Comment 4 vitia444 2020-05-04 19:42:42 UTC
When now I do perform these steps - it chooses the UTF-8 encoding. 
But maybe because it was a fresh install - the very first save was the following:

1. Call "Save as"
2. On Windows dialog "Save as" I just chose "Text (CSV)" (without checking the "Edit filters settings" checkbox)
3. It reminds about loosing some formulas and formating
4. It shows the the "Export Text File" dialog where I could choose the right charset, and I can remember by default this field was set to Windows 1251/Latin1 (although now I can see by default it is set to UTF-8). I didn't decide to pay additional attention on that

And the rest you know.
Could you please check the fresh install?
Comment 5 Roman Kuznetsov 2020-08-12 19:37:36 UTC
no problem in 7.0.0.3 on Windows. If I select "Text (.csv)" and don't select "Edit filter settings", then I see a special dialog with CSV export settings anyway
Comment 6 birder.6n 2020-10-27 10:40:47 UTC Comment hidden (off-topic)
Comment 7 Jean-Baptiste Faure 2021-05-11 20:29:08 UTC
(In reply to Roman Kuznetsov from comment #5)
> no problem in 7.0.0.3 on Windows. If I select "Text (.csv)" and don't select
> "Edit filter settings", then I see a special dialog with CSV export settings
> anyway

Same behavior for me with LO 7.1.4.0.0+ under Ubuntu.

So closing as WorksForMe. Please feel free to reopen if you disagree.

Best regards. JBF