Ask Your Question
0

Files with ANSI (cp1251) encoding [closed]

asked 2018-02-20 19:06:12 +0200

Lakedz gravatar image

updated 2020-12-02 11:11:42 +0200

Alex Kemp gravatar image

Hi everyone!

I have 2 files. 1 - UTF-8 2 - ANSI (cp1251)

Converting first file (UTF-8) to pdf -> ok. Converting second file (ANSI) to pdf -> get wrong charset

How can I get right converting for second file?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2021-05-01 20:44:01.109836

Comments

how are you "converting"?

Mike Kaganski gravatar imageMike Kaganski ( 2018-02-20 19:11:58 +0200 )edit

…and what is your locale?

gabix gravatar imagegabix ( 2018-02-21 08:27:59 +0200 )edit

Sorry for the delay wih answer. Local: utf-8 Converting: convert\LibreOfficePortable5.3\App\libreoffice\program\soffice --headless --convert-to pdf --outdir "[PREVIEW]" "{SOURCE_FILE}"

Lakedz gravatar imageLakedz ( 2018-03-27 16:36:06 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-03-27 17:09:08 +0200

Try something like

soffice --headless --infilter="Text (encoded):MS_1251,,,," --convert-to pdf --outdir "[PREVIEW]" "{SOURCE_FILE}"

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-02-20 19:06:12 +0200

Seen: 1,007 times

Last updated: Mar 27 '18