mysql의 경우는 셋팅시에 utf8로 설정하시고 셋팅하시면 됩니다.(multi language)
mysql 한글설정이 옵션에 나오는데 이거 무시하시고 그냥 utf8로 하시면 됩니다.
그럼 DB는 끝났고염.
웹페이지 구성시
1. meta http-equiv="content-type" content="text/html; charset=euc-kr"
2. form name="form1" method="post" action="write_ok.asp" enctype="multipart/form-data"
이것도 사용하시어야 하고염.
웹페이지에서 저장하실때 form을 받아오는 페이지는 예제로 보여줄께염.
' ABCUpload4 ex
' //read the write.asp_form value & file info & environment
Set theForm = Server.CreateObject("ABCUpload4.XForm")
theForm.Overwrite = True
theForm.MaxUploadSize = 20000000
setsize = 4200000
theForm.ID = Request.QueryString("ID")
Set theField1 = theForm("file1")(1)
Set theField2 = theForm("file2")(1)
W_file1 = "[저장할위치]" & [segdate1] & theForm.ID & theField1.SafeFileName
W_file2 = "[저장할위치]" & [segdate2] & theForm.ID & theField2.SafeFileName
' ABCUpload4 ex
W_boardnum = theForm("boardnum")
W_board_state = theForm("board_state")
* 위의 SafeFileName은 꼭 사용하세요. 서버용 언어를 가져다 쓴다는말이거든요.
Segdate1-2는 날짜구분용이나 저장할 파일앞에서 파일중복을 피할려고 쓰는 ID같은거 쓰시면 되고요.
* 이제 저장하는 내용은 모두 DB에는 utf8로 기록이 됩니다. 물론 파일을 따로 받아서 페이지에 보여주는 것은 그냥 쓰면되고염. SafeFileNamed의 기능이나 옵션은 ABCUpload4의 도움말을 찾아보시면 됩니다.
* DB의 파일을 직접 받아서 보시면 한글이 깨지는 경우 에디터옵션을 utf8로 읽으시면 됩니다.
mysql의 설정등에 관련 내용은 제가 정리한거 보셔도 됩니다.
밑은 제 블로그입니다.
출처: http://blog.naver.com/keypush.do
"쇼핑몰·홈페이지·오픈마켓
블로그·페이스북·이메일 등의 각종 마케팅 글쓰기, 각종 광고, 영업, 판매, 제안서, 전단지 반응율 3배×10배 이상 높이는 마법의 8단계 공식" |
☞자세히보기 |
|
|