It is basically necessary to exchange cash for foreign currency at the airport, but if you swipe your card, if you can't use the UnionPay channel, you will have to pay a currency conversion fee of 1~ 1.5%. If you need to pay a handling fee for foreign currency exchange at the airport, you will have to charge a handling fee twice, which is even more uneconomical.
Another way is that you take a debit card and withdraw cash at the ATM of the local airport, and then you get the local currency. Different banks charge different fees for withdrawing cash in different places.