Ask Your Question
1

Is there a way to change the encoding or see this .rtf document in Cyrillic?

asked 2017-01-17 10:29:58 +0200

Ptaleva gravatar image

I have problem with this document: http://mc.government.bg/files/1031_NA... It is an official law document from the site of the Ministry. Most of the official documents in our country are available only in .rtf format. The problem is that I don't see the letters in Cyrillic but I see them this way: ÍÀÐÅÄÁÀ ¹ Í-3 îò 6.04.2011 ã. çà óñëîâèÿòà è ðåäà çà ñúçäàâàíå è ïîääúðæàíå íà ïóáëè÷åí ðåãèñòúð íà ëèöàòà, êîèòî èìàò ïðàâî äà èçâúðøâàò äåéíîñòè ïî êîíñåðâàöèÿ è ðåñòàâðàöèÿ

edit retag flag offensive close merge delete

Comments

Same for me, even in MS Word Viewer, which should support RTF properly.

floris v gravatar imagefloris v ( 2017-01-17 13:22:48 +0200 )edit

The document seems to use 8-bit encoding and Windows codepage 1251 or a similar one. See also https://en.wikipedia.org/wiki/Windows... . Sorry! I cannot offer more help.

Lupp gravatar imageLupp ( 2017-01-17 14:20:50 +0200 )edit

So do you know how can I change the encoding in LibreOffice? I remember that there was such an option in MS Word but I can't find it here...

Ptaleva gravatar imagePtaleva ( 2017-01-17 14:53:35 +0200 )edit

Sorry! This is not my field, and I did not use rtf and codepages myself for decades now.
@JohnSUN might know remedy.

Lupp gravatar imageLupp ( 2017-01-17 16:09:00 +0200 )edit

Open the text in LibreOffice and copy some paragraphs to http://2cyr.com/decode/ Is the result readable and meaningful?

Regina gravatar imageRegina ( 2017-01-17 16:53:25 +0200 )edit

Yes, the result is readable, but sometimes there are forms (made as tables in the document) which I have to copy from the file and fill. So, the site is helpful but only for reading.

Ptaleva gravatar imagePtaleva ( 2017-01-18 15:13:04 +0200 )edit

Е Бива ли да си толко проста ма ОФЦОООООООО

ShefaTiOvco gravatar imageShefaTiOvco ( 2017-06-09 12:20:06 +0200 )edit

4 Answers

Sort by » oldest newest most voted
1

answered 2017-01-18 11:18:16 +0200

JohnSUN gravatar image

updated 2017-01-18 20:56:15 +0200

I think that the easiest way to fix such document is Cyrillic Tools

CyrTools

Please download it and change extention to .oxt

edit flag offensive delete link more

Comments

This looks very easy and user friendly but as I see, this is a tool for OpenOffice. I don't find it in the LibreOffice Extensions.

Ptaleva gravatar imagePtaleva ( 2017-01-18 15:14:40 +0200 )edit

I could not immediately figure out a way to accommodate this expansion here - .oxt-files cannot be uploaded here. Look, I've added it to the end of my answer

JohnSUN gravatar imageJohnSUN ( 2017-01-18 20:58:36 +0200 )edit

Yes, you were right. Thank you!

Ptaleva gravatar imagePtaleva ( 2017-01-23 20:41:10 +0200 )edit
2

answered 2017-01-17 17:27:39 +0200

Regina gravatar image

Make a copy of the file and open it in an editor. Change ansicpg0 to ansicpg1251. Save. Take an older OpenOffice version (I've got a portable OpenOffice 2.4.1.) Open the file with filter "Rich Text Format". Resave it with a new filename in .odt format. Result is LO Ask 85559 ansi1251 resaved.odt. Is the content correct?

edit flag offensive delete link more

Comments

Thank you for the answer but I am looking for a convenient and user friendly way to do this. It's easier for me to just open the file in WPS Writer for example and save it as a .doc file. This solves the problem but I have to use two types of Office software.

Ptaleva gravatar imagePtaleva ( 2017-01-18 15:21:40 +0200 )edit
2

answered 2017-01-24 20:59:14 +0200

A bug report is filed: tdf#105511. The proposal is to use LibreOffice's default document language in case the actual language is missing (given as ansicpg0/cpg0). A patch is under review.

edit flag offensive delete link more
1

answered 2017-01-18 18:56:04 +0200

Lupp gravatar image

updated 2017-01-18 19:11:59 +0200

As it looked like a kind of fun I shiftet back to my old bias towards programming and wrote a little program for converting rtf documents using a codepage (only Windows-1251 prepared so far) into those using unicode.
What I got for the originally linked file is attached. If it is exactly what you (the OQ) wanted, you can get the program, of course. The source is 73 sparse lines in Freepascal. Compiled for Win it is 71 KiB.
Here the attachment: theExample.rtf.fake.odt

(Since this askbot does not allow .rtf for upload I had to mimic a .odt.)

(Editing)
By the way: Regina got it better, of course. But might someone be able to tell me for what reason the replacement of character codes should spoil formats and probably some contents when using rtf?

edit flag offensive delete link more

Comments

The result isn't good because intervals between words are missing and the formatting is strange. I think I found the best solution: Just open the document in another office software (this can be done also in google docs) and save it the format you want. Then LibreOffice opens it.

Ptaleva gravatar imagePtaleva ( 2017-01-23 20:38:28 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-01-17 10:29:58 +0200

Seen: 9,022 times

Last updated: Jan 24 '17