FileStream 읽어올때 한글깨짐 해결하자 ^^
using System; using System.IO; using System.Text; //인코딩에 관한 내용이 들어있음 namespace ConsoleApplication1 { class Class1 { [STAThread] static void Main(string[] args) { Encoding encode = System.Text.Encoding.GetEncoding("ks_c_5601-1987"); FileStream fs = new FileStream(@"c:/temp/test.txt",FileMode.Open,FileAccess.Read); StreamReader sr = new StreamReader(fs,encode); //여기에 넣어주면 인코딩됨 string str = sr.Read..
C# WinForm
2019. 2. 20. 10:56
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- ssl_client_socket_impl.cc
- WPF Excel Export Microsoft.Office.Interop 성능향상(열 기준으로 복사)
- Xamarin reCAPTCHA
- ClickOnce 인증서 인증기간 변경
- Xamarin.Forms
- Xamarin.Ios Firebase Phone User Add
- Entry '' has empty native path
- WPF Textbox
- WPF Datagrid Cell Value Change
- Xamarin Firebase Phone Auth
- SkiaSharp
- Windows IIS FTP 디렉토리 목록 오류
- Xamarin.Ios Firebase Phone SMS OTP Send
- Linux SSH Multi Computer Join
- Microcharts
- Xamarin.Ios Firebase Phone Auth
- Xamarin SMS OTP Send
- Embeded 한글Font적용
- C# LINQ Left join
- 연산자 뒤에 피연산자가 없습니다.
- Label Text LineBreak in Xaml
- GetCellContent CheckBox Value
- FileStream Add Byte
- Xamarin Firebase Phone User Add
- c# Encrypt / Decrypt
- WPF Scrollviewer in ScrollViwer
- 서버 수준의 URN 필터
- 암호 마스터키
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 |
글 보관함