Chilkat Tech Notes
Chilkat Tech Notes
Tips, techniques, and patterns for Chilkat developers
Chilkat Software

VBScript to Download Japanese HTML and Save using euc-jp

November 30, 2009 in Uncategorized

Demonstrates how to save non-English strings to a file using Chilkat.FileAccess:

set http = CreateObject("Chilkat.Http")

'  Any string unlocks the component for the 1st 30-days.
success = http.UnlockComponent("Anything for 30-day trial")
If (success <> 1) Then
    MsgBox http.LastErrorText
    WScript.Quit
End If

'  Send the HTTP GET and return the content in a string.
html = http.QuickGetStr("http://www.asahi.com/")

' Save the HTML to a file using the euc-jp charset:
Set fac = CreateObject("Chilkat.FileAccess")
success = fac.WriteEntireTextFile("asahi.html",html,"euc-jp",0)

' Download the freeware Chilkat.FileAccess ActiveX from:
' http://www.chilkatsoft.com/download/FileAccess.zip

Blogroll

  • * Release Notes
  • Chilkat Binary Encodings
  • Chilkat Character Encodings
  • Chilkat Home
  • Example Code
  • Generate Chilkat Code from Postman
  • How to Determine FTP Connection Settings
  • How To Register ActiveX DLLs
  • MSVC Runtimes for .NET Assemblies
  • Never Handle Non-Text Binary Data as a String
  • Online XML Signature Validators
  • Reference Documentation
  • SOAP WSDL to Chilkat Code
  • Socket Programming Must-Know Concepts
  • StackOverflow (Chilkat Software)
© 2025 Chilkat Tech Notes · All rights reserved.