If you look at the structure of an ester, not the small ones but a long one, do you see how the oxygens are surrounded by non-polar long hydrocarbon chains?? this is what allows it to dissolve non-polar molecules as the long chain on either side neutralises the polarity caused by the oxygen.