Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to convert a .doc file to pdf with antiword:

antiword -a a4 pruebaDoc.doc > pruebaDoc.pdf

I get this message "The combination PDF and UTF-8 is not supported"

How can I fix this?

share|improve this question

migrated from Jan 18 '12 at 17:02

This question came from our site for professional and enthusiast programmers.

This question does not seem to fit at SO for me, it doesn't concern with programming problems. – Milad Naseri Jan 18 '12 at 16:48

See this post here for a Linux solution. This is the wrapper solution that they recommend:


# a shell wrapper to make 'antiword' usage reasonable on UTF-8 systems.
# Michal Jaegermann,, 2004/Nov/03
#    - simplify and we may be printing on a Postcript printer, 2006/May/08

echo "$@" | egrep -q -w -- '-p|-a' && lang="${LANG%.UTF-8}"
LANG=$lang antiword.bin "$@"

For Windows you can try specifying a specific mapping file using the -m switch:

antiword.exe -a a4 Test.doc -m 8859-1.txt > Test.pdf
share|improve this answer

You must log in to answer this question.