달력

52024  이전 다음

  • 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
  • 29
  • 30
  • 31
반응형

//출처 https://hellocho.tistory.com/11
//추가 문자 인코딩이기 때문에 인코딩 등록자 지정이 필요하다고 함
var client = new WebClient();
int euckrCode = 51949;
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
client.Encoding = System.Text.Encoding.GetEncoding(euckrCode);

string strHtml = client.DownloadString("http://kind.krx.co.kr/corpgeneral/corpList.do?method=download");








Posted by 유령회사
|