linuxÖÐrzÏÂÁî·¿ªºóÂÒÂëÊÇÔõô»ØÊÂ
rz ÏÂÁîÂÒÂëÊÇÓÉÓÚÎļþ´«ÊäÖÐʹÓÃÁ˲î±ðµÄ×Ö·û±àÂë¡£½â¾ö¼Æ»®£º1. ¼ì²éÎļþ±àÂëÊÇ·ñÒ»Ö£¬°ü¹ÜÔ¶³ÌºÍÍâµØÅÌËã»úʹÓÃÏàͬ×Ö·û±àÂ루ÍƼö utf-8 »ò ascii£©¡£2. ʹÓà rz -e Ñ¡ÏîÖ¸¶¨×Ö·û±àÂ룬Èç rz -e utf-8¡£3. ¼ì²é zmodem ÐÒéÉèÖã¬È·±£Æä×Ö·û±àÂëÒ²ÏàÆ¥Åä¡£
Linux ÖÐ rz ÏÂÁî·¿ªºóÂÒÂëµÄÔµ¹ÊÔÓÉ
rz ÏÂÁîÔÚ Linux ÖÐÓÃÓÚͨ¹ý zmodem ÐÒé´ÓÔ¶³ÌÅÌËã»úÏÂÔØÎļþ¡£ÈôÊÇ·¿ªºó·ºÆðÂÒÂ룬ͨ³£ÊÇÓÉÓÚÎļþ´«ÊäÀú³ÌÖÐʹÓÃÁ˲î±ðµÄ×Ö·û±àÂë¡£
½â¾ö¼Æ»®£º
Òª½â¾ö´ËÎÊÌ⣬ÐèÒª¼ì²éÒÔÏÂÄÚÈÝ£º
Îļþ±àÂ룺ȷ±£Ô¶³ÌÅÌËã»úºÍÍâµØÅÌËã»úÉϵÄÎļþʹÓÃÏàͬµÄ×Ö·û±àÂ롣ͨ³££¬UTF-8 »ò ASCII ÊÇÍƼöµÄ×Ö·û±àÂë¡£
rz Ñ¡ÏʹÓà -e Ñ¡ÏîÖ¸¶¨ rz ÏÂÁîÔÚÎļþ´«ÊäʱʹÓõÄ×Ö·û±àÂë¡£ÀýÈ磺rz -e utf-8¡£
°ì·¨£º
È·¶¨Ô¶³ÌÎļþºÍÍâµØÅÌËã»úµÄ×Ö·û±àÂë¡£
ÔÚÔ¶³ÌÅÌËã»úÉÏ£¬Ê¹ÓÃÊʵ±µÄÏÂÁÎļþ±àÂëת»»ÎªËùÐèµÄ×Ö·û±àÂë¡£ÀýÈ磺iconv -f old_encoding -t new_encoding file.txt > file_new.txt¡£
ʹÓÃ׼ȷµÄ rz Ñ¡Ïî´ÓÔ¶³ÌÅÌËã»ú´«ÊäÎļþ¡£ÀýÈ磺rz -e utf-8¡£
ÈôÊÇÎÊÌâÈÔÈ»±£´æ£¬Çë¼ì²é zmodem ÐÒéµÄÉèÖã¬Ëü¿ÉÄÜÒ²ÐèÒªµ÷½â×Ö·û±àÂë¡£
ʾÀý£º
¼ÙÉèÔ¶³ÌÅÌËã»úÉϵÄÎļþʹÓà UTF-16 ±àÂ룬¶øÍâµØÅÌËã»úʹÓà UTF-8 ±àÂ롣Ҫ׼ȷÏÂÔØÎļþ£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ
iconv -f utf-16 -t utf-8 remote_file.txt > remote_file_utf8.txt rz -e utf-8 remote_file_utf8.txt
µÇ¼ºó¸´ÖÆ
ÒÔÉϾÍÊÇlinuxÖÐrzÏÂÁî·¿ªºóÂÒÂëÊÇÔõô»ØʵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡