I need to format a luit command so I can write a file that I'm trying to fix the encoding for. What I have right now is luit -encoding gbk cat santi.txt, but I would like this to have the output written in a text file.
Backstory, I am having trouble reformatting a text document that was originally Chinese characters. For whatever reason using programs such as Notepad++ and encoding websites both have not worked, and I've received error messages trying to use each of the Linux solutions offered here. I turned to luit because I've had some success using it as described here.
Anyways, the luit -encoding gbk cat santi.txt successfully outputs Chinese characters into my terminal. However, it only has an output of ~200 lines, and the file is perhaps 2,000 +.
Looking at the what looks like the luit manual, the two options below seem the most promising.
-ilog filename Log into filename all the bytes received from the child. -olog filename Log into filename all the bytes sent to the terminal emulator. P.S According to chardef original encoding of the file is probably GB2312.