When the esterifying agent is an acid chloride (prepared, for example, by reacting the corresponding acid with a chlorinating agent such as thionyl chloride or phosphorus oxy-chloride), choice of solvent will vary not only with the particular reactants used but also with whether or not the acid chloride is isolated prior to the esterification step.