[Original question]
\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
\node [circle, draw=red, fill=red!30] (N1) at (0,0) {A};
\node [circle, draw=red, fill=green!30] (N2) at (5,0) {B};
\draw [red,->] [postaction={decoration={raise=3pt, text along path, text={|\textsc|Text||},text align=center}, decorate}] (N1.north) to [out=45,in=135] (N2.north);
\end{tikzpicture}
\end{document}
I want \textsc works. Any help?
[Updated]
After CarLaTeX's answer, I got:
\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
\node [circle, draw=red, fill=red!30] (N1) at (0,0) {A};
\node [circle, draw=red, fill=green!30] (N2) at (5,0) {B};
\draw [red,->] [postaction={decoration={raise=3pt, text along path, text={|\scshape|Text |\_| |+$\theta$|},text align=center}, decorate}] (N1.north) to [out=45,in=135] (N2.north);
\end{tikzpicture}
\end{document}
I want _ and $\theta$ works.



