This paper proposes a CDRSHNet (CodecDirtyRainyShadowHazeNetwork) architecture with a fusion of self-attention (SA) and variance-guided multiscale attention (VGMA) mechanism to restore traffic sign images captured in challenging weather conditions including raindrops, shadows, haze, blurry images from dirty camera lenses and codec errors. The SA captures global dependencies whereas VGMA enhances the representation by emphasizing informative channels and spatial locations. To enhance the image quality hybrid loss function is proposed that combines the Gradient Magnitude Similarity Deviation (GMSD) and Charbonnier loss. The CDRSHNet is trained on a dataset of real and synthesized images. Its performance is evaluated on the average Structural Similarity Index Measure (SSIM) and Peak Signal-to-Noise Ratio (PSNR) on Test RID (Real Image Dataset) and Test SID (Synthesized Image Dataset). CDRSHNet achieved an average SSIM of 0.978 and an average PSNR of 39.58 on Test RID. On Test SID, the average SSIM is 0.963, and the average PSNR is 39.46