The problem is that don't know how to change the codification of my system very well. What I have done has been to say to him to the TheIDE that that charset is another one (for example iso8859-15) and at the beginning of the program to establish the codification by hand.
I guess it is understandable - compiled code cannot know anything about TheIDE setting. So changeing in both places is actually the right thing.