 He first studied at the gymnasium at Rastatt (1818–27), and then proceeded to the University of Freiburg.After attending lectures in jurisprudence for a brief period, he devoted himself to the study of theology (1827–30).He fell into scepticism; but after studying philology at the University of Heidelberg from 1830 to 1832 he regained his former Catholic faith.