He became a pupil in the gymnasium at Stuttgart at a comparatively late age, and in 1848 he entered the Eberhard Karls University of Tübingen, where he studied oriental languages, especially Sanskrit. He afterwards attended lectures at the Georg-August University of Göttingen, and in 1854 settled as Privatdozent at the University of Bonn. In 1856 he moved to the University of Heidelberg, where he assisted Bunsen in his literary undertakings.