Diffusion-ordered NMR spectroscopy (DOSY) is a powerful tool for the analysis of mixtures. Spatially-encoded (SPEN) DOSY makes it possible to collect a complete DOSY data set in a single scan, through spatial parallelisation of the gradient dimension. One limitation of current SPEN DOSY experiments is that the data is analysed assuming that the field gradient is uniform over the sample. This is usually not the case for high resolution NMR probes, and even less for triple-axis gradient probes. In this work, we have developed methods to account for gradient non-uniformity in the processing of SPEN DOSY experiment. We have first mapped the field gradient, using a stimulated echo (STE) NMR sequence with a weak readout gradient. We have then modified the calculation of the position-dependent effective gradient pulse area that is used in the analysis of SPEN DOSY data. The resulting model was validated through numerical simulations. A comparison of results obtained with and without inclusion of the effect of non-uniform gradients shows that the proposed approach increases the accuracy of SPEN DOSY experiments.