¾È±Ô °øºÎ¹æ

ACTIVE SERVER PAGE > ÆÄÀÏ»ý¼º - UTF-8 , EUR-KR Çü½ÄÀ¸·Î ÆÄÀÏÀ» »ý¼ºÈÄ ÀúÀå

µî·ÏÀÏ : 2017-07-04 17:12 Á¶È¸¼ö : 52,694

FileSystemObject °´Ã¼´Â ÆÄÀÏÀ» »ý¼ºÇÏ¿© ÀúÀåÇÒ °æ¿ì Unicode Çü½ÄÀ¸·Î ÀúÀåµÇ´Â °æ¿ì¸¦ º¼ ¼ö ÀÖ½À´Ï´Ù.

À̶§ UTF-8 , EUR-KR Çü½ÄÀ¸·Î ÀúÀåÇϱâ À§Çؼ­´Â ADODB.Stream °´Ã¼¸¦ »ç¿ëÇÏ¸é µË´Ï´Ù.
 
        f_name = "/file_data/naver_ep/epall.txt"
	f_name = Server.MapPath(f_name)

	dim stm2
	Set stm2 = server.CreateObject("ADODB.Stream")
	stm2.Open 
	stm2.Type = 2				'adTypeBinary (1), TEXT(2)
	stm2.Charset = "euc-kr"		'¶Ç´Â UTF-8

	stm2.WriteText("ÇÏÇÏÇÏ")&Chr(13)&Chr(10)
	stm2.WriteText("ÇÏÇÏÇÏ")&Chr(13)&Chr(10)
	stm2.WriteText("ÇÏÇÏÇÏ")&Chr(13)&Chr(10)
	stm2.WriteText("ÇÏÇÏÇÏ")&Chr(13)&Chr(10)
	stm2.WriteText("ÇÏÇÏÇÏ")&Chr(13)&Chr(10)
	stm2.WriteText("ÇÏÇÏÇÏ")&Chr(13)&Chr(10)
	stm2.WriteText("ÇÏÇÏÇÏ")&Chr(13)&Chr(10)

	call stm2.SaveToFile(f_name , 2)



À§¿Í °°Àº Çü½ÄÀ¸·Î »ý¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù.
 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.