asp에서 utf-8 형태로 파일생성 하기

fso에서는 charset을 지원하지 않습니다.
그래서 아래와 같이 하면 됩니다.

dim stm
Set stm = CreateObject(“ADODB.Stream”)
stm.Open
stm.Type = 2
stm.Charset = “utf-8″
stm.WriteText(str)
call stm.SaveToFile(Savefilename , 2)
set stm = nothing

Comments

Powered by Facebook Comments

댓글 남기기

당신의 이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.

*

다음의 HTML 태그와 속성을 사용할 수 있습니다: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>