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


문제 설명

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

아랍 문자가 포함된 일반 텍스트 파일을 저장해야 하며 파일을 열 때 아랍어 문자가 아랍어로 나타나야 합니다.

Encoding.GetEncoding(1256)을 사용하여 문제 없이 이름을 만들고 파일을 저장합니다. 다시 1256을 StreamWriter의 코드 페이지로 사용합니다.

그러나 볼 때 메모장++의 결과 파일은 문자가 올바르게 표시되지 않으며 아랍어로 표시하려면 코드 페이지를 의도적으로 다시 1256으로 전환해야 합니다.

그런 다음 파일을 제3자에게 전송하고 있지만 문자가 전송되지 않습니다. 코드 페이지를 변경하십시오(이유를 모르겠습니다!). 따라서 아랍어를 읽을 수 없습니다.

사용할 코드 페이지가 파일에 "포함"되도록 파일을 저장할 수 있는 방법이 있습니까?


참조 솔루션

방법 1:

Save the file as UTF‑8. That should automatically include a magic BOM (Byte Order Mark) in the beginning of the file so applications opening the file will know it is encoded in UTF‑8.

(by BlueChippykrisku)

참조 문서

  1. Forcinge the codepage of a file so that it can show characters encoded with windows‑1256 correctly? (CC BY‑SA 3.0/4.0)

#arabic #codepages #C# #utf-8 #encoding






관련 질문

android 앱에서 아랍어 글꼴을 올바르게 렌더링하는 데 문제가 있습니다. (having trouble with arabic font rendering correctly android app)

목표 c 아랍어에 대한 자동 레이아웃 현지화 동작 비활성화 (Objective c Disable Autolayout Localization Behavior for Arabic)

HTML 페이지에서 아랍어를 지원하는 방법은 무엇입니까? (how to support Arabic language in html page?)

Codeblocks를 사용하여 C++에서 아랍어 문자열을 어떻게 작성할 수 있습니까? (How can i write arabic string in C++ using Codeblocks?)

AttributeError: 'WordNetCorpusReader' 개체에 'get_synsets_from_word' 속성이 없습니다. (AttributeError: 'WordNetCorpusReader' object has no attribute 'get_synsets_from_word')

아랍어 NSString은 Xcode 디버거와 로그 간에 다른 문자 순서를 보여줍니다. (Arabic NSString shows different letter order between Xcode debugger and log)

혼합 스크립트를 사용하여 pango에서 단어 줄 바꿈 (Word wrapping in pango with mixed scripts)

개체 배열을 설정하는 동안 FindBug 오류 '변경 가능한 개체에 대한 참조를 통합하여 내부 표현을 노출할 수 있음'을 수정하는 방법은 무엇입니까? (How to Fix FindBug error 'May expose internal representation by incorporating reference to mutable object' while setting Array of Objects?)

텍스트 모드(pdu 아님)에서 at-command로 아랍어 SMS를 보내는 방법 (how to send arabic sms with at-command in text mode (not pdu))

Flash CS5 Professional V11.0에서 모양을 선택 및 편집하고 아랍어 문자를 사용하는 방법은 무엇입니까? (How to select and edit a shape and use Arabic Characters in Flash CS5 Professional V11.0?)

StanfordCoreNLP 파이프라인 원시 텍스트와 토큰 목록을 입력으로 제공하는 방법이 있습니까? (Is there a way to give a StanfordCoreNLP pipeline raw text and a list of tokens as input?)

Python에서 아랍어 텍스트를 숫자로 변환하는 방법 (How to convert Arabic text to number in Python)







코멘트