Classic ASP
Classic ASP
Load utf-8 Text File into a StringBuilder
Demonstrates how to load a utf-8 text file into a StringBuilder object instance.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set sb = Server.CreateObject("Chilkat.StringBuilder")
success = sb.LoadFile("someFileContainingUtf8.txt","utf-8")
If (success <> 1) Then
Response.Write "<pre>" & Server.HTMLEncode( "Failed.") & "</pre>"
Else
Response.Write "<pre>" & Server.HTMLEncode( "Success.") & "</pre>"
End If
%>
</body>
</html>