"Foreign" should mean "citizen of your nationality", being "you" the attacker and the AS the defender.
An exception to that rule:
Suppose a city size 1 with no culture and no foreigners, that WAS owned by you and, when in your hands, produced some culture. In this case, if you take over it the city is not razed but captured, and the previous culture point produced by you are conserved.