Donate to Remove ads

Got a credit card? use our Credit Card & Finance Calculators

Thanks to Rhyd6,eyeball08,Wondergirly,bofh,johnstevens77, for Donating to support the site

.csv problem with libreoffice

Discussions regarding financial software
tjh290633
Lemon Half
Posts: 8286
Joined: November 4th, 2016, 11:20 am
Has thanked: 919 times
Been thanked: 4137 times

.csv problem with libreoffice

#121984

Postby tjh290633 » March 3rd, 2018, 10:11 pm

I'm using LibreOffice 6.0.1.1 and have found that all my .csv files have turned into a single line of apparently Japanese characters.

Has anybody any ideas why this might be, and how to effect a cure?

TJH

Breelander
Lemon Quarter
Posts: 4179
Joined: November 4th, 2016, 9:42 pm
Has thanked: 1001 times
Been thanked: 1855 times

Re: .csv problem with libreoffice

#121997

Postby Breelander » March 4th, 2018, 12:06 am

tjh290633 wrote:I'm using LibreOffice 6.0.1.1 and have found that all my .csv files have turned into a single line of apparently Japanese characters...


It's the character set that it's using to import the .csv.

I can reproduce this effect by right-clicking on a .csv and opening with my LibreOffice 4. The 'Import' screen has a 'character set' choice at the top. When I set it to 'Unicode (UTF-16)' it looks exactly as you describe - a single line of Chinese characters.

The default choice (presumably, as I've never consciously changed this) appears to be 'Western European(Windows-1252/WinLatin 1)'. This works fine as do several others, including UTF-8.

There's apparently no reliable way to determine the encoding used in any particular text document. Seems that in LibreOffice the default encoding used when importing a csv is whatever you set as the character set in the Import dialog last time you used it.

Try opening Calc, use File > Open to open any .csv, set the character set to one that works (try UTF-8) then open it. This should make UTF-8 the default from now on - as suggested here...

https://ask.libreoffice.org/en/question ... onsistent/

tjh290633
Lemon Half
Posts: 8286
Joined: November 4th, 2016, 11:20 am
Has thanked: 919 times
Been thanked: 4137 times

Re: .csv problem with libreoffice

#122084

Postby tjh290633 » March 4th, 2018, 2:50 pm

Marvellous! That is exactly what has happened. It must have changed to UTF-16 when it was last upgraded.

Many thanks.

TJH

Breelander
Lemon Quarter
Posts: 4179
Joined: November 4th, 2016, 9:42 pm
Has thanked: 1001 times
Been thanked: 1855 times

Re: .csv problem with libreoffice

#122086

Postby Breelander » March 4th, 2018, 3:03 pm

tjh290633 wrote:Many thanks.
TJH


You're more than welcome - we can't have you (of all people) unable to open your .csv files :D


Return to “Financial Software - Discussion”

Who is online

Users browsing this forum: No registered users and 43 guests