Skip to main content

Unicode Error Building Fabric Documentation

When building the documentation for Fabric 1.8, which uses Sphinx, Pandoc, etc., I encountered a Unicode error when the LaTeX was being processed.

The error said:

! Package inputenc Error: Unicode char \u8:├ not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
...

l.5575 ├-- \_\_init\_\_.py

?

The root cause: a Unicode character for drawing boxes was missing/undeclared. As turns out, the following needed to be added to the preamble:

\usepackage{pmboxdraw}

Once this was present, all was fine.