Polar and non-polar is not an all-or-nothing kind of thing. There are different degrees of polarity. Ethanol is a moderately polar solvent compared to water. It can disolve many polar compounds, but it has trouble disolving very polar compounds like ionic salts. Similarly, it can disolve slightly non-polar substances (like carboxylic acids), but it cannot disolve molecules which are strongly hydrophobic (like hydrocarbons).