saving cp1521 file on utf-8 system

Asked by dino99

hi,

i have some hard time when downloading file written in russian (cp1521). My system use western european (utf-8) language on ubuntu with firefox. Each time i download and save such russian file then open it with "gedit" or any text editor i only get gibberish, not understandable nor translatable, like "âåëè÷èíà âîçâðàòà öåíû âíóòðü êàíàëà".

As i understand its a problem between unicode and non-unicode. Googling around, ive tried with installed ru language, keyboard set to russian, session in russian, firefox in russian, but no luck the result is always gibberish.

So how can i download/save such file in original language without alteration ?

Regards

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openoffice.org Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

If you open it with openoffice, is it ok?

Revision history for this message
dino99 (9d9) said :
#2

many thanks, good catch

select ooo with cp1521 to open it: cyrillic can be read, seem there is no alteration.

by the way "gedit" need to be able to open with cp1521 and the other non unicode (choice is very limited with gedit)

Revision history for this message
dino99 (9d9) said :
#3

Thanks actionparsnip, that solved my question.

Revision history for this message
dino99 (9d9) said :
#4

some issues after opening with ooo:
- insert unwanted "space"
- remove some " ; "
- replace some " ; " by ", "

as it is a c++ coded program, these errors are bugs.