I have a perl script that sends utf-8 encoded text to stdout. When I call the script from the shell and try to redirect the output to a file, however, the file ...
No non-ASCII UTF-8 character encoding can be mis-interpreted as a newline, which means that UTF-8 is safe for use in comments in POSIX-compliant shells.
I have a few shell scripts with UTF8-encoded characters inside and i want to be sure that they are decoded correctly regardless of the machine locale settings.