\documentclass{article}
\usepackage{xepersian}
\settextfont{XB Zar}
\setdigitfont{XB Zar}
\begin{document}
% by default, \AutoMathsDigits is active (Persian maths digits in Persian environment and latin maths digits in latin environment)
\begin{equation}
1+2=3
\end{equation}
\begin{latin}
\begin{equation}
1+2=3
\end{equation}
\end{latin}

\DefaultMathsDigits% maths digits all are latin (both in and in no-latin environments)
\begin{equation}
1+2=3
\end{equation}
\begin{latin}
\begin{equation}
1+2=3
\end{equation}
\end{latin}

\PersianMathsDigits %digits all are Persian (both in and in no-latin environments)
\begin{equation}
1+2=3
\end{equation}
\begin{latin}
\begin{equation}
1+2=3
\end{equation}
\end{latin}

\AutoMathsDigits % back to default

\begin{table}[h]
\centering
\begin{latin}
\begin{tabular}{|l|l|}\hline
me&you\\ \hline
she&he \\ \hline
\end{tabular}
\end{latin}
\caption{این یک جدول است}
\end{table}
\end{document}