The text editor you are viewing the file with probably expects a different character encoding than your terminal.
It would be helpfull to know your OS, the charset settings of your terminal and of your text editor.
Since you list Umlauts it's probably a latin1 <-> utf8 problem, but that's just a guess.
And take a look at Encode and utf8.
| [reply] |
OS : WinXP SP2
and charset, as u assumed, should be latin1.
i tried various texteditors (textpad, windows editor and wordpad, ...)
thanks for the links, i'lll look for something helpfull there
| [reply] |
It would have been helpful to post some of your code. In particular, suppose you try to create a really simple, minimal script that prints accented characters just fine on the terminal, but when you run it like this:
perl test_script.pl > test.txt
and look at test.txt, those characters are messed up. Then we could look at your code, and even run it on different machines, to give you more useful advice.
It probably makes a difference where those accented letters are coming from (some other input file? hard-coded in the script?) And what version of perl are you using? | [reply] [d/l] |