in reply to DOS coding compatibility with perl "é"->"'"

You have confirmed my (late) reply to your original question. When you view the same byte in a command prompt and in a Windows application, it will display differently. When you cut and paste between them, Windows automatically converts the data to keep the visual display the same. Unfortunately for programming, you care more about the binary data than details of how it is shown, and this behaviour causes you problems.

If you save to a file and read that in another application then the data remains the same, but the display changes. This is much better from your point of view.

My suggestion is therefore never to cut and paste between a command prompt and any Windows application. Instead save to files and read from them in other applications.