<div dir="ltr">Even more condensed:<br><br>\documentclass{article}<br>\makeatletter<br>\def\vafa#1{\ifcase#1\or ا\or ب\or ح\or ح\or خ\fi}<br>\let\@Alph\vafa<br>\makeatother<br>\usepackage{hyperref}<br>\begin{document}<br>\tableofcontents<br>
\section{Test}<br>\newpage<br>\appendix<br>\section{Another Test}<br>\end{document}<br><br>It seems that the actual problem is because of the presence of Persian characters.<br clear="all"><br>-- <br>Best wishes,<br>Vafa Khalighi<br>

</div>