I'm trying TeX4ebook
on the following minimal LaTeX
file:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{csquotes}
\title{Título}
\author{Autor}
\date{Fecha}
\begin{document}
\maketitle
\textquote{¡Hola, mundo!}
áéíóúÁÉÍÓÚüÜñÑ.
\end{document}
Accented characters appear in the epub file as á´aé´eí´ıó´oú´uÁ´AÉ´EÍ´IÓ´OÚ´UüÜñ˜nјN. Umlauts are fine.
Following the suggestions on this question, I'm calling tex4ebook
with the following options:
tex4ebook -t tex4ebook-test-spanish.tex "html5,charset=utf-8" " -cunihtf -utf8"
All messages from tex4ebook
seem to be fine:
[STATUS] tex4ebook: Conversion started
[STATUS] tex4ebook: Input file: tex4ebook-test-spanish.tex
HTML Tidy for Linux version 5.6.0
[STATUS] tex4ebook: Conversion finished
I'm using the TeXLive
version that comes packaged with Ubuntu 20.04.