Hi Mavri,
I think that the problem you experience is related to the encoding of your source file. The " { " character of the Italian keyboard most probably is not compliant with the encoding expected in your source file, so it produces this undesirable behavior.
I've tried this with a Greek and Hindi keyboard, and the results are somewhat erratic. I get a warning from CodeBlocks noting that my code contains characters from a different encoding than the expected one (probably ASCII), and that the encoding of the source file will be changed to Unicode to prevent problems. In my case, the non-English " { " and " } " are parsed fine when using the Greek keyboard. The Hindi keyboard doesn't have those characters at all so I can't test it.
Still, I think that in order to write code you pretty much need to have your keyboard set to English. Otherwise such encoding problems are apt to occur, even if the non-English characters you type look like their English equivalents. So I would suggest to simply change your keyboard to English while you code, and you wouldn't have this occur.
I do understand that coding in non-English characters can work at times too, but it seems to me that the system isn't designed to work that way.
I hope this helps somewhat. Regards,
Okaya