Hence the need for knock sensors but it is pretty easy and cheap to do at the factory, these are known as Flex-Fuel models in Brazil where E10 is the minimum blend going all the way to 100% ethanal derived from sugar cane.
Ethanol fuel in Brazil - Wikipedia

