We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Is there a way to set LO to open text files as UTF-8 or to default to txt (Choose Encoding)?

asked 2018-06-23 23:51:06 +0200

Madd gravatar image

updated 2021-06-21 11:25:18 +0200

Alex Kemp gravatar image

When I open txt files many characters get garbled because they are UTF-8 encoded. I would like to have LO default to using UTF-8 when opening text files (like OpenOffice does) or at least have it pop up the 'select encoding' box. There are so many options under 'file type' when opening files that I can't find what I want.

edit retag flag offensive close merge delete


When you say that you open txt files you mean from within LibreOffice or by double clicking them?

Xoristzatziki gravatar imageXoristzatziki ( 2018-06-25 21:43:50 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2020-05-17 09:40:25 +0200

Creating a "shortcut" with hardcoded filter, and using it for those files, could be an option. E.g., on Windows, you may create a shortcut on desktop having command line like

"C:\Program Files\LibreOffice\program\soffice.exe" --infilter="Text (encoded)"

and drag TXT files onto it to have the "ASCII Filter Options" dialog shown. You may also add filter options to the command above to fix to using UTF-8 - see --infilterin the relevant help.

edit flag offensive delete link more

answered 2018-06-24 10:05:45 +0200

m.a.riosv gravatar image

Choose the file type 'Text - (Choose encoding) (*.txt)

edit flag offensive delete link more


I am aware of that method. what I am looking for is a way to make that the default like OpenOffice does instead of having to go through the filetype pulldown. Since almost ALL of the text files I am working with are UTF-8 encoded, it is a pain having to go through the filetype pulldown every time. Having a config setting for how text files are opened would be nice.

Madd gravatar imageMadd ( 2018-06-24 17:31:48 +0200 )edit

Then maybe you can find a solution in this thread https://ask.libreoffice.org/en/questi...

m.a.riosv gravatar imagem.a.riosv ( 2018-06-24 18:42:18 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-06-23 23:51:06 +0200

Seen: 7,461 times

Last updated: May 17 '20