Show not full or garbled, Dos2unix and modify the system character set method does not work how to do

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.