A 742

If your movement leading up to a charge attack is interrupted, you fail to execute a charge. This happens if you didn't Spot a square of difficult terrain on the way, for instance. If there is an invisible creature blocking the path to your intended target you cannot instead charge the invisible creature.
If you don’t have line of sight to the opponent at the start of your turn, you can’t charge that opponent.
Because you didn't execute a charge, you instead took some other action ─ most likely a single or double move, depending on the distance you traveled before stopping short. You are free to take whatever other actions are permitted to you at that point.
A creature can squeeze past an opponent while moving but it can’t end its movement in an occupied square.

You can squeeze through or into a space that is at least half as wide as your normal space. Each move into or through a narrow space counts as if it were 2 squares, and while squeezed in a narrow space you take a -4 penalty on attack rolls and a -4 penalty to AC.
You still won't see the invisible creature, but slowing down because the space is occupied will foil your charge and let you know there's something there. (If the creature had taken an attack of opportunity at you when you exited their threatened space to squeeze into their occupied space you would already know this.) If you still have movement available you could keep going, knowing that the invisible creature only gets a single AoO for all of your movement out of squares they threaten. If you still have a standard action available you could attack the invisible creature's square (though you must wait until you exit it, both because the rules prohibit ending your movement in an occupied square, and because you'd be attacking all creatures in the square ─ including yourself ).