www.LinuxHowtos.org

edit this article

enable (pdf)latex to process UTF-8 encoded documents when using docbook2pdf


You want to write documents in UTF-8, (pdf)latex complains about unknown characters and other errors.
Sadly it is not very easy to make docbook2* include latex commands like
\usepackage[utf8x]{inputenc}

in the file header.
To be able to use UTF-8 you can set the environment variable SP_ENCODING

export SP_ENCODING=XML

That way you get your pdf file in UTF-8 encoding without weird characters in the file.

From the openjade documentation:

SP_ENCODING

This specifies the default encoding when operating in fixed character set mode. The value must be the name of an available encoding. The default encoding cannot be document character set relative when operating in fixed character set mode.


rate this article:
current rating: average rating: 1.2 (64 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back