The problem I'm trying to resolve here is that, in the terminal of an ssh session to an OS X machine, the output of the
ls command cannot display utf8 encoded Chinese characters in file names correctly (showing something like
???). The ssh client I'm using is
putty on Windows (both are configured to use utf8 encoding). Both of them have this problem. On the other hand, utf8 characters in file contents can be displayed correctly (as via
cat), and the auto complete feature of bash can also display utf8 characters in file names correctly (both in the candidates list when there are multiple candidates, and in the file name that gets auto completed when there is only one candidate.)
So the question is, how to make
ls correctly display utf8 encoded file names in the terminal of an ssh session to an OS X machine?