The system is Ubuntu 14.04 LTS, has been running for a long time without problems.
Recently I found that the file names (Chinese characters) become garbage (wrong encoding). To be exact: I ssh from a Linux Mint PC, type ls and got file names with lots of '????'. Nobody has done anything with the files.
I used the bash script in the accepted answer of https://askubuntu.com/questions/113188/character-encoding-problem-with-filenames-find-broken-filenames with no luck. However, the name printed by
# display the filename converted from each enc to utf8
printf 'In %s:\n' "$dir/"
is OK (correctly decoded), only on iconv there are always errors with all the encoding such as UTF XX, Windows 12XX, CP xx, GB xx
Also to my surprise, whebn I rsync the remote Ubuntu folder to my local Linux Mint PC, the file names are correct!
What went wrong?