Abstract: A scheme enabling the acquisition of high resolution NMR spectra within inhomogeneous magnetic fields is introduced and exemplified. The scheme is based on the spatial encoding protocol recently introduced for collecting multidimensional NMR data within a single scan, which retrieves spectral information via interference phenomena between spin packets located at distinct positions within the sample. This in turn enables compensating for field inhomogeneities over the sample as a whole by shifting the phases of the radiofrequency pulses involved in the spatial encoding, rather than by demanding an extreme uniformity in the employed magnetic field. The upper tolerable field inhomogeneity limit thus becomes orders-of-magnitude higher than in conventional time-domain acquisitions. No particular spatial dependencies are demanded by the new scheme, which can yield its high resolution results on a single-scan basis.