This question is related to the question Parse html file using MSHTML in VBScript.
The question tells me how to use an HTMLFILE object.
Dim oHF : Set oHF = CreateObject("HTMLFILE")
oHF.write args
WScript.Echo oHF.title
But when I do the above line and the args (HTML content) has Unicode characters, it becomes junk. DOMManipulation বাংলা ব্লগ became DOMManipulation বাংলা বà§à¦²à¦—.
How do I solve this?
argsto anHTMLDocumentobject, and nothing else. Please provide a minimal reproducible example demonstrating how you're passing the input value to your VBScript code, how you populateargs, and how you retrieve the content from the HTML document afterwards. The most likely reason for the garbled output (also known as "mojibake") is an encoding problem. We won't be able to find and fix it without more information, though.বis UTF-8 representation ofবBengali Letter Ba etc…