It looks like that's in IBM-850 (aka cp850), with ü as codepoint 0x81 and ö as cp 0x94. It may be that cp850 is the right thing to write to the terminal but if you're in a utf-8 locale and redirected to a file it should probably write utf-8.
One more thing, what happens if you do "type changelog_test.txt" in the terminal?
Thanks Tim.
It looks like that's in IBM-850 (aka cp850), with ü as codepoint 0x81 and ö as cp 0x94. It may be that cp850 is the right thing to write to the terminal but if you're in a utf-8 locale and redirected to a file it should probably write utf-8.
One more thing, what happens if you do "type changelog_test.txt" in the terminal?