FTP 바이너리 전송 후의 Charset (Charset after FTP binary transfer)


문제 설명

FTP 바이너리 전송 후의 Charset (Charset after FTP binary transfer)

우리는 두 대의 머신(unix와 windows)을 가지고 있으며 첫 번째(unix [IBM1047])에서 두 번째(windows [UTF16])로 FTP를 통해 파일을 보냅니다. ASCII 모드를 사용하는 경우 Ñ ó...와 같은 일부 특수 문자가 올바르게 표시되지 않습니다. 그래서 우리는 BINARY 모드로 변경했고 전송 후 charset 파일을 UTF16으로 설정했습니다. 그러나 표시되지 않는 캐리지를 반환하는 것을 제외하고는 모든 것이 잘 작동합니다(파일의 1줄).

그래서 우리가 놓치고 있는 것은 무엇입니까?


참조 솔루션

방법 1:

Binary mode means that there are no changes done to the file, which includes changes on the line endings. UNIX and Windows have traditionally different line endings, i.e. \n on UNIX vs. \r\n on Windows. If your application is not able to deal with UNIX‑style line endings you have to convert all the line endings in the file. See also Windows command to convert Unix line endings?.

(by Fran bSteffen Ullrich)

참조 문서

  1. Charset after FTP binary transfer (CC BY‑SA 2.5/3.0/4.0)

#codepages #FTP #character-encoding #linux #Windows






관련 질문

Windows-1256으로 인코딩된 문자를 올바르게 표시할 수 있도록 파일의 코드 페이지를 강제 실행하시겠습니까? (Forcinge the codepage of a file so that it can show characters encoded with windows-1256 correctly?)

FTP 바이너리 전송 후의 Charset (Charset after FTP binary transfer)

PyInstaller 3.0으로 컴파일된 Python 3.5 코드는 코드 페이지 65001에서 충돌합니다. (Python 3.5 code compiled with PyInstaller 3.0 crashes in code page 65001)

Python의 IDLE에 일부 문자를 입력할 수 없는 이유는 무엇입니까? (Why some characters can not be typed in Python's IDLE?)

첫 번째 Python 스크립트에서 추가 숫자가 인쇄되는 원인은 무엇입니까? (코드 페이지/유니코드 문제) (What is causing the extra number to be printed in my first Python script? (codepage/unicode issue))

Visual Studio 15 콘솔 앱에서 높은 ASCII 문자 그리기 상자를 사용하는 방법은 무엇입니까? (How to use box drawing high ASCII characters in Visual Studio 15 console app?)

.NET Core에서 OS 코드 페이지 번호를 찾는 방법은 무엇입니까? (How to find OS code page number in .NET Core?)

파일의 문자 인코딩을 어떻게 수정합니까? (How do I correct the character encoding of a file?)

문자열의 codePage 확인 (Check codePage of string)

csv 파일 UTF-8(BOM 포함)을 ANSI/Windows-1251로 (csv file UTF-8 (with BOM) to ANSI / Windows-1251)

chcp 65001 코드 페이지로 인해 오류 없이 프로그램이 종료됩니다. (chcp 65001 codepage results in program termination without any error)

WideCharToMultiByte를 올바르게 사용하는 방법 (How do you properly use WideCharToMultiByte)







코멘트