I am using a UTF8 file as input in a script to do some text processing, then a print my desires input from the script and the output is again UTF8. However, when I run the command sort -u from the terminal to the output file in UTF8 the redirected output of sort is charset=unknown-8bit. What can I can do solve this? why is my script working perfectly but terminal changes everything? (Mac OS X)
Feel free to ask the details you need. Thanks!