I have a code snippet wrapped inside a listings
:
\documentclass{article}
\usepackage{listings}
\begin{document}
\begin{lstlisting}
printf("┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┓\n");
printf("┣━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━┫\n");
printf("┗━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━┛\n");
\end{lstlisting}
\end{document}
But I get this errors:
Package inputenc: Invalid UTF-8 byte sequence.
LaTeX doesn't like those ┏ ━ ┳ ┓┣ ┫┗ ┻ ┛ box-drawing characters 🤔
I've tried to add
\usepackage[utf8]{inputenc}
or
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
or
\usepackage{unixode}
..., but nothing worked.