# [texhax] Unicode Replacement Character in Standard TeX

Philip Taylor P.Taylor at Rhul.Ac.Uk
Thu Jan 15 17:46:17 CET 2015


Douglas McKenna wrote:

> Is there a font, available to -all- TeX users, that includes a glyph that can be recognized as the Unicode Replacement Character?  I realize I can use XeTeX with a U+FFFD (or maybe any character not in the font), but I'm interested in using standard pdfTeX with standard LaTeX 2e and a pure ASCII input file.
> The glyph typically looks like a filled black diamond with a white question mark inside it.

Any use ?

\documentclass [a4paper]{minimal}
\usepackage [dvipsnames]{xcolor}
\usepackage {amssymb}

\begin{document}
\begin{center}

\font \cmr = cmr7

$\blacklozenge \mkern -2,5mu \llap {\hbox {\textcolor {white} {\cmr ?}}}$

\end{center}
\end{document}

Philip Taylor