Click or drag to resize

다국어 지원

Unicode 지원

유니코드는 기존 8비트를 문자 집합과는 달리 모든 글자를 16비트 단위로 표현하여 모든 언어를 하나의 코드 집합으로 묶은 것입니다. TABS Upload는 유니코드를 완벽히 지원해서 유니코드로 작성된 폼 페이지에서 전달된 데이터를 유니코드로 정확히 인식해서 처리합니다. 유니코드 페이지 작성법에 대해서는 MSDN을 참조 바랍니다. Charset과 CodePage 값에 대한 상세한 내용은 MSDN의 Character Set Recognition을 참조 바랍니다. 유니코드의 경우 Charset은 utf-8이며 CodePage는 65001입니다.

유니코드로 작성된 폼 페이지

ASP
<%@ CodePage=65001 Language="VBScript"%>
<%Response.Charset = "utf-8"%>
<html>
<head>
    <title>Upload Example</title>
</head>
<body>
<form method="post" ENCTYPE="multipart/form-data" action="upload.asp">
    <input type="text" name="userName">
    <input type="file" name="uploadFile">
    <input type="submit" name="submit" value="Upload">
</form>
</body>
</html>

유니코드로 작성된 업로드 페이지

ASP
<%@ CodePage=65001 Language="VBScript"%>
<%Response.Charset = "utf-8"%>
<html>
<head>
    <title>Upload Results</title>
</head>
<body>
<%
Set Upload = Server.CreateObject("TABSUpload4.Upload")
Upload.CodePage = 65001
Upload.Start "C:\Temp"
Upload.Save
%>
</body>
</html>
다국어 지원

현재 윈도우 서버의 기본 언어가 아닌 다른 언어로 작성된 업로드 페이지를 구성할 경우 Charset과 CodePage를 올바르게 지정해야 합니다. 지정하지 않을 경우 윈도우의 기본 언어가 지정됩니다. 따라서 기본 언어가 아닌 페이지의 경우 명시적으로 Charset과 CodePage 지정해야 합니다.

아래 예제는 영문 윈도우에서 한글로 작성된 업로드 페이지를 서비스할 경우로 Response.Charset에 ks_c_5601-1987를 명시해 웹 브라우저가 올바른 언어를 선택할 수 있게끔 하고 업로드 처리시 Upload.CodePage에 한글을 나타내는 949를 지정해 업로드된 데이터가 올바르게 처리될 수 있도록 합니다.

참고로 일본어의 경우 Charset은 iso-2022-jp, CodePage는 50220입니다. 다른 언어에 대한 값은 MSDN의 Character Set Recognition을 참조 바랍니다.

한국어로 작성된 폼 페이지

ASP
<%Response.Charset = "ks_c_5601-1987"%>
<html>
<head>
    <title>Upload Example</title>
</head>
<body>
<form method="post" ENCTYPE="multipart/form-data" action="upload.asp">
    <input type="text" name="userName">
    <input type="file" name="uploadFile">
    <input type="submit" name="submit" value="Upload">
</form>
</body>
</html>

한국어로 작성된 업로드 페이지

ASP
<%Response.Charset = "ks_c_5601-1987"%>
<html>
<head>
    <title>Upload Results</title>
</head>
<body>
<%
Set Upload = Server.CreateObject("TABSUpload4.Upload")
Upload.CodePage = 949
Upload.Start "C:\Temp"
Upload.Save
%>
</body>
</html>