Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot convert encoded text to PDF #384

Closed
niggli opened this issue Mar 31, 2017 · 4 comments
Closed

Cannot convert encoded text to PDF #384

niggli opened this issue Mar 31, 2017 · 4 comments

Comments

@niggli
Copy link

niggli commented Mar 31, 2017

I am running unoconv V0.7 on OS X Sierra with LibreOffice 4.2.5.2 and I'm trying to convert a encoded text file to a PDF. I run the following command:

phyton unoconv -f pdf -i FilterOptions=38 example.txt

example.pdf
example.txt

However the output is always the same, the non-ascii characters are all "???????".

In the LibreOffice GUI it's no problem to import such a file, I can select the encoding in the import dialog. Then I can export as a PDF, the result is perfect. However it's important to select "Text Encoded" as the input file format, if you select "Text" then you have the same effect as in unoconv. Probably unoconv suffers under the same problem? How can I force unoconv to use the "Text encoded" input file format?

@dagwieers
Copy link
Member

Reading the unoconv manual could help.

@niggli
Copy link
Author

niggli commented Aug 3, 2017

Thanks for the nice comment. I did read the man pages and the readme on github back and forth and tried for hours everything I could find online about the input filters - before I opened this issue. It would be helpful if you could point me at the part of the manual which would help me, thanks.

@belegnar
Copy link
Contributor

belegnar commented Dec 2, 2017

Text should be utf-8 encoded

@regebro
Copy link
Member

regebro commented Feb 27, 2019

That seems to be the solution. Thanks.

@regebro regebro closed this as completed Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants