My problem is the charset of the files that get unzip within bash are not UTF8. Here are the steps to reproduce the problem:
- Copy a zip file in binary to USS (ftp - bin - put myfile2unzip.zip)
- Use the jar command to unzip: jar -xvf myfile2unzip.zip
- cat myscript.sh
Output:
{Za???a????{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{@???@....
What I have tried:
iconv -f UTF8 -t IBM1047 myscript.sh > myscript.uss
That did not work, the output file has the wrong charset.