https://www.eurofound.europa.eu/observatories/emcc/erm/legis...
Also I know from someone that worked in India that the employer would hold back some money which would be forfeited if they left without giving a notice period. Not sure how common that is.
Some companies go a step ahead and keep your original documents (Degree certificate etc) so you can’t apply elsewhere after accepting offer. It’s ridiculous.
Typically you'd be charged by the company for the time you didn't work. Since you generally are owed money when you leave (like vacations, bonus, etc) they take it from there.
Australia has pretty good laws around this :-)
For example, IT consultants usually need to stay for around 3 months following their resignation.
It's the other side of the coin of strong employment laws that make it very hard for people with permanent positions to be let go, unlike the US.
I'm not sure what the consequences would be if I didn't show up though... maybe my employer could sue me to get back the salary they had to pay me, while I didn't work as the contact stated I would.