You may make an attack of opportunity against a charging opponent who enters an area you threaten. Your attack of opportunity happens immediately before the charge attack is resolved.
You only get an attack of opportunity against a character that exits a square you threaten.