Scenario: Text files under Windows are uploaded to Linux to perform cat when not displayed or garbled, whether to modify the character set of the SSH client software or modify the system character set or the Dos2unix conversion does not work, how to do?
Problem ①:rz after uploading cat, Dos2unix or cat is not
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7E/77/wKioL1cB11ORw64GAACR-hvl3Tw153.png "style=" float: none; "title=" Image1.png "alt=" Wkiol1cb11orw64gaacr-hvl3tw153.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/7B/wKiom1cB1qvTFXpTAAAgADiI-nw134.png "style=" float: none; "title=" Image2.png "alt=" Wkiom1cb1qvtfxptaaagadii-nw134.png "/>
Problem ②:rz After uploading cat display is not complete, garbled, Dos2unix or cat or display is not full, garbled
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/7B/wKiom1cB1qvTv_nHAACAUTVyrlQ818.png "title=" Image3.png "style=" Float:none; "alt=" Wkiom1cb1qvtv_nhaacautvyrlq818.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/77/wKioL1cB11TSBpLzAAAg5rsaOPI103.png "title=" Image4.png "style=" Float:none; "alt=" Wkiol1cb11tsbplzaaag5rsaopi103.png "/>
Solution:
[Email protected] ~]# iconv-f gb2312 old.txt-o new.txt
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/77/wKioL1cB11TSo5m3AAAk1ZN-KfU828.png "title=" Image5.png "style=" Float:none; "alt=" Wkiol1cb11tso5m3aaak1zn-kfu828.png "/>
Show not full or garbled, Dos2unix and modify the system character set method does not work how to do