Euro zone inflation was stable in July but its core measure, which is closely watched by the European Central Bank, went up to a four-year high against market expectations of a drop.