It's called DCC and you are legally required to be offered a choice. If you choose the local currency, your home bank does the exchange and the rate is basically always better. If you choose your home currency, the terminal operator does the exchange at a terrible rate and often slaps on a hefty fee for the "convenience".