Ask Your Question
0

Files with ANSI (cp1251) encoding

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

Lakedz 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 close merge delete

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

Mike Kaganski gravatar image

Try something like

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 91 times

Last updated: Mar 27