Sunglasses will not protect your eyes from the harmful UV radiation emitted by the sun during a solar eclipse. You will need to use special filters for that matter in order to safely view it.