The title contains the problem: I have a datatool table, which contain accented characters (öäü) and I want to export the table into a CSV file :
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{datatool}
\begin{document}
\DTLnewdb{table}
\DTLnewrow{table}
\DTLnewdbentry{table}{name}{aouäöü}
\DTLdisplaydb{table}
\DTLsavedb{table}{export.csv}
\end{document}
With the package inputenc, the display of the table is ok:
name
aouäöü
But in the created file export.csv there is :
name
aou\IeC {\"a}\IeC {\"o}\IeC {\"u}
The best for me would be if the exported file was UTF8 encoded (instead of Ascii), and if it contained aouäöü.
A second class solution which I could accept, would be, if the exported file contained
aou\"a\"o\"u
I could also accept a macro \convert which would take öäü as argument and would return \"a\"o\"u, but I don't know if it exists.
xetexandluatex. Amongst other stuff you will find information on how to migrate from pdfTeX. – Andrey Vihrov Feb 23 '12 at 10:00pdflatex,xelatexandlualatexis how you invoke these engines with the LaTeX format. – Andrey Vihrov Feb 23 '12 at 10:07