But in the PERL output windows already it becomes --HTML po√©sieBEGIN--
where √© stands for the character é. The strangest part is that there are other é before and after in the code and they come out correctly as é !!!
Hm, strange. I think that calls for a hex editor. Apparently your text editor is hiding some differences from you that your shell chokes on, so you'd have to try and find the byte or bytes in your source that represent the é in each case. Or maybe it's something with your code, but you'd have to show it.