groff && UTF-8

Christian Weisgerber naddy at
Sat Jul 23 20:25:13 UTC 2011

Matthias Apitz <guru at> wrote:

> The critical part seems to be: the text is UTF-8 and converting this
> to ISO 8859-1 is not an option. It's a Library Management System we
> just ported to Unicode, and we don't want to fall back in printing :-)
> I've checked groff 1.21 from the ports but it seems to understand
> only making UTF-8 output with its driver -Tutf8. Is there a way to make
> it understand UTF-8 as input

Use the preconv(1) command included with groff 1.21, or use the -k
or -K <encoding> options with groff to automatically call preconv.

Christian "naddy" Weisgerber                          naddy at

More information about the freebsd-questions mailing list