It depends on the credit card company and how vigilent they are in monitoring credit cards for the gambling code. If they detect it they are not supposed to allow the deposit. Of course some casinos miscode the product, but if they are caught doing this the fine can be significant and they may lose thier merchant account.
Those who live in a police state such as Americans and Canadians face this problem.