[완료] [질문] 메모장에서는 정상 출력이 되지 않고, Editplus등의 에디터에서는 정상 출력 되는 경우...

자일자일의 이미지

리눅스의 vim 에서 아래와 같이 파일편집 후 파일을 저장하여
sftp를 이용하여 윈도우즈로 전송을 하였습니다. (전송 모드는 ascii/binary 모두 확인..)

D:"Is Session"=00000001
S:"Protocol Name"=Telnet
D:"Port"=00000017
D:"Send SGA"=00000001
D:"Send SGA All"=00000000
D:"Will LFLOW"=00000001
D:"Force Char Mode"=00000000
D:"Enable NAWS"=00000001
D:"Enable NTLM Authentication"=00000001
D:"Telnet Disable SSL Certificate Verification"=00000000
D:"Server Requires Bare CR"=00000000

이후 메모장으로 해당 파일을 열어보면 줄 나눔이 해제되어있고 특정 특수 문자가 포함되어있습니다.
즉 알아볼 수 없도록 변경이 되어 있습니다.
(해당 내용을 익스프로러에 붙여 넣기 하면 내용이 정상적으로 변경이 되어 오류 화면 캡쳐하여 파일
첨부하였습니다.)

근데 이 파일을 Editplus나 Ultraedit 등의 에디터로 열어보면 정상적으로 표현이됩니다.
이게 인코딩의 문제인가싶어 Editplus 에서 정상적으로 표현된 위 내용을 다른 이름으로 저장하여
인코딩 형식을
UTF-8
ANSI
UNICODE
UNICODE BIG ENDIAN
WESTERN EUROPEAN (WINDOWS)
UNICODE(UTF-8) 655001 으로 각각 저장하여 메모장으로 열어보았지만 정상적으로 표현이 되질 않습니다.

VIM 작업한 OS의 LOCALE 입니다.

$locale
LANG=ko_KR.UTF-8
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_PAPER="ko_KR.UTF-8"
LC_NAME="ko_KR.UTF-8"
LC_ADDRESS="ko_KR.UTF-8"
LC_TELEPHONE="ko_KR.UTF-8"
LC_MEASUREMENT="ko_KR.UTF-8"
LC_IDENTIFICATION="ko_KR.UTF-8"
LC_ALL=

이게 어떤 이유로 발생하는 현상인지...
정상적으로 메모장에서 열어보고 싶으면 방법이 있는지 알고 싶습니다.
(약 200개의 파일이 모두 같은 현상을 보이고 있어 일괄 처리할 수 있는 방법이 있으면 좋겠습니다.)

감사합니다.

File attachments: 
첨부파일 크기
Image icon error.gif17.09 KB
자일자일의 이미지

to change the file format to windows (dos):
:set ff=dos
to change the file format to linux/unix:
:set ff=unix
to check the file format:
:set ff

일괄 처리하는 방법이 있으면 좋겠네요.

hys545의 이미지

즐린
에디트 플러스 같은경우는 자체적으로 처리해주지만
메모장은 그냥 보여줌
그래서 줄바꿈이 안됨.

즐린

cinsk의 이미지

자일자일의 이미지


두분 모두
도움 감사합니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.