a question about libreoffice and txt files:

hi every one.
i tried both libreoffice and open office.
fortunately libreoffice recognizes the incoding of the txt files and
open them without asking about which incoding should is use, and also
about phont and language.
its a very great feature that even microsoft office has not and its
realy unique for libreoffice!
but in some cases when i want to open a persian txt file with
libreoffice, unfortunately libreoffice does not recognize the incoding
and does not open my txt in utf-8 incoding!!!
as the result, libreoffice desplays this kind of files like chinese or
japanese characters and its becomes completely unreadible!
the persian txt files characters are not display correctly in persian
and becomes unreadible!

in these cases, is it possible to make change in libreoffice settings
to libreoffice recognizes unicode and utf-8 correctly or at least
libreoffice asks to which incoding should it use?
as i mentioned, only the cases that libreoffice does not recognize the
incoding correctly, i want libreoffice to asks like open office.
but if it becomes possible to show unicode and persian files always
correctly, its a very great and unique feature that recognizes without
asking any questions!
thanks for your help and god bless you all.

It is not a permanent solution, but you can open txt files through the
File->Open menu of LibreOffice itself.
In the Open dialog, manually select the file type "Text - Choose encoding".
It will let you choose the file encoding.

...if anyone know how to permanently set LibreOffice to open .txt as UTF-8,
I'm all ears :wink:

Hi Nasrin,

For your use case either from the StartCenter or with Writer already open
simply use the File -> Open dialog. And on the chooser -- rather than
default "All Files" scroll the listbox down into the Writer section select
the "Text - Choose Encoding (.txt)" entry. Then select your text file from
the UI. You'll be given another dialog that will let you set properties
for importing the text, i.e. Character set (including Unicode in utf-7,
utf-8 or utf-16), Default font, Language as well as what gets treated as the
Paragraph break on import.

Give that a try, some mix should give you reliable import filtering.

Stuart

hi again.
thanks for your suggestion.
i tested and it did not work for me in persian txt.
when i tried it, a message appeared that said libreoffice crashed due
to an unexpected error.
your work will be saved and automaticly recovered when you you launch
audacity again.
after that, every time that i open libreoffice and use control o or
open i recieve this famous error message. end program not responding
and wants to report to microsoft.
is there any help or advice?
and also pdf persian files is completely unreadible by libreoffice writer.
thanks again for your help.

Hi all:

  I don't know if this solve the problem but could be:

Menu-Tools-Options-Languages Settings-Language-Language pre-settings for
documents-Complex text Language (CTL). There you can find Persa
languaje.

I hope this help

Regards,

Jorge Rodríguez

hi again.
i tested the way you mentioned and for me in the tools menu, options,
language settings complex language ctl was checked and the combo box
of it was persian.
but libreoffice writer in some persian txt documents can not recognize
the incoding and open and show these document correctly.
even i offered libreoffice to my sister and she tested this for me.
and the result was the same.
is there any efficient solution for this or any suggestion more?
i wanted to report it to bugzilla and send my files for them.
for example: readme fa.txt is unreadible by libreoffice writer.
thanks again for your kindness, spending time and help and god bless you