Look up in the NIST Chemical WebBook the vapor pressures of both gases as a function of temperature. Along a wide rage (200-250K) of temperature, the vapor pressure of gaseous SO2 remains considerably smaller than that of gaseous HCl. Therefore, both compounds may be separated by trap-to-trap distillation from a gaseous mixture of both components.
Because the solubility of SO2 in water is highly temperature dependent, being greatly more soluble in cold water than in hot water, greater solubility selectivity is obtained with hot water. By scrubbing the gas with water close to boiling point, HCl can be dissolved with high selectivity. The obtained solution still contains a small contribution from dissolved SO2, but can be purified if required. Part of the HCl can not be dissolved, due to its relatively high vapour pressure and incomplete absorption. A cold saturated solution of sulphurous acid or sodium sulphite can then be used to further selectively dissolve the remaining HCl. The exit gas stream can finally be dried with desiccant (e.g. CaCl2), so that a purified SO2 gas stream can be obtained.