When I write :
I have this output : Little-endian UTF-16 Unicode text, with CR line terminators
Then if I write :
I have : ASCII text
file2.txt is created by making :
echo $var > "file2.txt"
I would like file2.txt have the same encoding than file1.txt. How can I do that ?