# how to use special character in DTLloaddb keys

\DTLsetseparator{,}


Hi, I want to include special character in my column header, i am using datatool and DTLloaddb does not seem to work even if escape the special char. (here %)

The document wont compile and it throws lot of errors like Missing: \endcsname inserted.

-

Without a MWE, this is untested, but from the error message you quote I would try replacing \% by \safepercent which you could define by
\begingroup
\lccode\+\%\lowercase{\endgroup\def\safepercent{+}}

\DTLloaddb[headers={Method,\shortstack{Accuracy (\%)},\shortstack{F-Score (\%)}, No. of iterations},keys={Method, Accuracy, F-Measure, No. of iterations}]{table3}{tablecsv/GDSGD_3.csv}