<%
If photo_num = 2 Then
%>
<% Else %>
<% End If %>
<%
If photo_num = 2 Then
%>
<% Else %>
<% End If %>
<%
If request("id") = "" Then
%>
<%
Else
%>
<%
End If
'SNS ¿¬µ¿ ½ÃÀÛ
Public Function URLEncodeUTF8(byVal szSource)
Dim szChar, WideChar, nLength, i, result
nLength = Len(szSource)
For i = 1 To nLength
szChar = Mid(szSource, i, 1)
If Asc(szChar) < 0 Then
WideChar = CLng(AscB(MidB(szChar, 2, 1))) * 256 + AscB(MidB(szChar, 1, 1))
If (WideChar And &HFF80) = 0 Then
result = result & "%" & Hex(WideChar)
ElseIf (WideChar And &HF000) = 0 Then
result = result & _
"%" & Hex(CInt((WideChar And &HFFC0) / 64) Or &HC0) & _
"%" & Hex(WideChar And &H3F Or &H80)
Else
result = result & _
"%" & Hex(CInt((WideChar And &HF000) / 4096) Or &HE0) & _
"%" & Hex(CInt((WideChar And &HFFC0) / 64) And &H3F Or &H80) & _
"%" & Hex(WideChar And &H3F Or &H80)
End If
Else
result = result + szChar
End If
Next
URLEncodeUTF8 = result
End Function
title_encode = replace(NewsTitle, chr(34), """)
title_encode = URLEncodeUTF8(title_encode)
%>
<%
WebText = replace(WebText, chr(10), "
")
%>
<%=WebText%>