I am using tcolorbox with Exercise and Solution in Vietnamese, but I can't compile this code. What am I doing wrong?
\documentclass[12pt,a4paper]{article}
\usepackage{fouriernc}
\usepackage[utf8]{vietnam}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{tcolorbox}
\tcbuselibrary{listings}
\tcbset{texercisestyle/.style={arc=0.5mm, colframe=blue!25!yellow!90!white,
colback=blue!25!yellow!5!white, coltitle=blue!25!yellow!40!black,
fonttitle=\small\sffamily\bfseries, fontupper=\small, fontlower=\small,
listing options={style=tcblatex,texcsstyle=*\color{red!40!black}},
}}
\newtcolorbox[auto counter,number within=section,list inside=exam]{baitap}[2][]{%
texercisestyle,
listing file={solutions/texercise\thetcbcounter.tex},
label={exe:#2},
record={\string\processsol{solutions/texercise\thetcbcounter.tex}{#2}},
title={Bài tập \thetcbcounter\hfill\textbf{Lời giải ở trang} \pageref{sol:#2}},
list text={Exercise with solution on page \pageref{sol:#2}},#1}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\section{Thử máy}
Thử máy
\tcbset{texercisestyle/.style={arc=0.5mm, colframe=blue!25!yellow!90!white,
colback=blue!25!yellow!5!white, coltitle=blue!25!yellow!40!black,
fonttitle=\small\sffamily\bfseries, fontupper=\small, fontlower=\small,
listing options={style=tcblatex,texcsstyle=*\color{red!40!black}},
}}
\tcbstartrecording
\begin{baitap}{tabular_example}
Giải phương trình
\[(x^2 + 2x + 3) \cdot \sqrt{4x +5} + (6x^2 + 7x + 8) \cdot \sqrt{9x +10} = 9.\]
\begin{tcboutputlisting}
\begin{tcbwritetemp}
This is a solution.
\end{tcbwritetemp}
\end{tcboutputlisting}
\tcbuselistingtext%
\end{baitap}
\begin{baitap}{macro_twoparam}
\begin{tcboutputlisting}
Tôi không thể viết được tiếng Việt Nam (I can't write Vietnamese).
\end{tcboutputlisting}
\tcbuselistingtext%
This is a problem. \par\smallskip
\begin{tcbwritetemp}
\end{tcbwritetemp}
\tcbusetemplisting\par\smallskip\tcbusetemp%
\end{baitap}
\tcbstoprecording
\tcblistof[\subsection]{exam}{List of Exercises%
\label{listofexercises}}
\newtcbinputlisting{\processsol}[2]{%
texercisestyle,
listing only,
listing file={#1},
phantomlabel={sol:#2},%
title={Lời giải cho Bài tập \ref{exe:#2} ở trang \pageref{exe:#2}},
}
\tcbinputrecords
\end{document}



\tcbuselibrary{listingsutf8}– Ignasi Jun 30 '16 at 05:16