In the gas cleaning HCl and sulphur components are removed with adsorbents. The concentration of both HCl and the total sulphur load in the product gas (i.e. H2S, COS, C2S, and organic sulphur) has to be reduced to below 100 ppbV. Commercial adsorbent materials are selected. The gas cleaning section is operated above the water dewpoint.