\section{Quadratic theta lifting and all spherical Hecke moments} \label{fl:sec:odd-theta} To pass from the even orthogonal group $\operatorname{SO}_{2m}$ to the symplectic group $\operatorname{Sp}_{2m}$ we use the theta lift for the dual pair of equal rank. On parameters it adds a trivial line to the standard representation. Two things have to be proved about the lift of a generic cusp form: that it is nonzero, and that its Whittaker coefficient $\Lambda$ satisfies the expected Hecke equations at all unramified places, that is, $\Lambda(T\Theta)=\eta(T)\Lambda(\Theta)$ for the spherical Hecke operators $T$. We obtain both from one computation, that of the twisted Jacquet module of the Weil representation along the maximal unipotent subgroup of the symplectic group (Lemma~\ref{fl:lem:theta-jacquet-module}): it is the space of compactly supported Whittaker functions on the orthogonal group. Globally this gives a formula for the Whittaker coefficient of the lift as an integral of the Whittaker function of the cusp form against a test function at our disposal (Proposition~\ref{fl:prop:odd-theta-Whittaker}), from which nonvanishing is read off. At unramified places the test function attached to a Hecke operator applied to the spherical vector is computed explicitly (Proposition~\ref{rw:prop:theta-spherical}); it is governed by the branching rule from $\operatorname{SO}_{2m+1}$ to $\operatorname{SO}_{2m}$, and this gives these equations. A generalized Hecke eigenfunction with a nonzero Whittaker coefficient is then extracted by Lemma~\xref{I}{fl:lem:hecke-moment-extraction} (Corollary~\ref{fl:cor:odd-theta-moment}). The Weil representation is written in a model that uses the quadratic form and not only its bilinear form, so that the argument applies in characteristic two. \subsection{A model of the Weil representation in every characteristic} Let $V=V_+\oplus V_+^\vee$ with $\dim V_+=m\ge2$, \[ Q(x,\xi)=\xi(x),\qquad B((x,\xi),(x',\xi'))=\xi(x')+\xi'(x), \] and put $G_0=\operatorname{SO}(V)$ and $G_1=\operatorname{Sp}_{2m}$. Over a local field, $G_1$ acts by right multiplication on $\operatorname{Mat}_{m,2m}=V_+\otimes F^{2m}$, hence on its Schwartz space. Writing a matrix as $(\mathbf x,\mathbf y)$ with two blocks of size $m\times m$, we transport this action by the partial Fourier transform \[ (\mathcal F\Phi)(\mathbf x,\boldsymbol\xi) =\int\Phi(\mathbf x,\mathbf y) \psi(-\operatorname{tr}(\mathbf y^t\boldsymbol\xi))\,d\mathbf y \] to a representation $\mathscr W_\psi$ of $G_1$ on $\mathcal S(V^m)$, where $z=(z_1,\ldots,z_m)$ and $z_i=(x_i,\xi_i)\in V$. Let $m(A)=\operatorname{diag}(A,A^{-t})$, $n(C)=\left(\begin{smallmatrix}1&C\\0&1\end{smallmatrix}\right)$ with $C=C^t$, and $w=\left(\begin{smallmatrix}0&1\\-1&0\end{smallmatrix}\right)$. Then \begin{align} \mathscr W_\psi(m(A))\phi(z)&=|\det A|^m\phi(zA), \label{fl:eq:quadratic-levi}\\ \mathscr W_\psi(n(C))\phi(z)&= \psi\left(\sum_iC_{ii}Q(z_i)+\sum_{i