No person indicted for any offense shall be convicted thereof, unless by admitting the truth of the charge in a demurrer, or plea, by confession in open court, or by verdict of a jury, accepted and recorded by the court.