Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<job>
<reference object="ADODB.Stream" />
<object id="stmANSI" progId="ADODB.Stream" />
<object id="stmUTF8" progId="ADODB.Stream" />
<script language="VBScript">
Option Explicit
With stmANSI
.Open
.LoadFromFile "ANSI.txt"
.Type = adTypeText
.LineSeparator = adCRLF
.Charset = "x-ansi" 'Same as Windows-1252.
With stmUTF8
.Open
.Type = adTypeText
.LineSeparator = adLF
.CharSet = "UTF-8"
.WriteText stmANSI.ReadText(adReadAll)
.SaveToFile "UTF8.txt", adSaveCreateOverWrite
.Close
End With
.Close
End With
MsgBox "Done", vbOkOnly, "Conversion Complete!"
</script>
</job>
<job>
<reference object="ADODB.Stream" />
<object id="stmANSI" progId="ADODB.Stream" />
<object id="stmUTF8" progId="ADODB.Stream" />
<object id="stmNoBOM" progid="ADODB.Stream" />
<script language="VBScript">
Option Explicit
With stmANSI
.Open
.Type = adTypeBinary
.LoadFromFile "ANSI.txt"
.Type = adTypeText
.LineSeparator = adCRLF
.Charset = "x-ansi" 'Same as Windows-1252.
With stmUTF8
.Open
.Type = adTypeText
.LineSeparator = adLF
.CharSet = "UTF-8"
'Use Line operations to obtain LineSeparator action.
Do Until stmANSI.EOS
.WriteText stmANSI.ReadText(adReadLine), adWriteLine
Loop
stmANSI.Close
'Skip over UTF-8 BOM.
.Position = 0 'Enable Type change.
.Type = adTypeBinary
.Position = 3 'UTF-8 BOM is in positions 0 through 2.
With stmNoBOM
.Open
.Type = adTypeBinary
stmUTF8.CopyTo stmNoBOM
stmUTF8.Close
.SaveToFile "UTF8.txt", adSaveCreateOverWrite
.Close
End With
End With
End With
MsgBox "Done", vbOkOnly, "Conversion Complete!"
</script>
</job>
<job>
<reference object="ADODB.Stream" />
<object id="stmUnicode" progId="ADODB.Stream" />
<object id="stmUTF8" progId="ADODB.Stream" />
<object id="stmNoBOM" progid="ADODB.Stream" />
<script language="VBScript">
Option Explicit
With stmUnicode
.Open
.Type = adTypeText
.LineSeparator = adCRLF
.Charset = "Unicode"
.LoadFromFile "Unicode.txt"
With stmUTF8
.Open
.Type = adTypeText
.LineSeparator = adLF
.CharSet = "UTF-8"
'Use Line operations to obtain LineSeparator action.
Do Until stmUnicode.EOS
.WriteText stmUnicode.ReadText(adReadLine), adWriteLine
Loop
stmUnicode.Close
'Skip over UTF-8 BOM.
.Position = 0 'Enable Type change.
.Type = adTypeBinary
.Position = 3 'UTF-8 BOM is in positions 0 through 2.
With stmNoBOM
.Open
.Type = adTypeBinary
stmUTF8.CopyTo stmNoBOM
stmUTF8.Close
.SaveToFile "UTF8.txt", adSaveCreateOverWrite
.Close
End With
End With
End With
MsgBox "Done", vbOkOnly, "Conversion Complete!"
</script>
</job>