morningstar1001
New Member
- Joined
- Jul 23, 2018
- Messages
- 10
Hi everyone,
I need to extract the description text from a lot of html files. So I use this code to open and read the text from the html files.
It worked, but the description text which I need to collect is not UTF-8 and become "Nội thất văn phòng"
So is there any other way to extract correct data?
Thanks.
I need to extract the description text from a lot of html files. So I use this code to open and read the text from the html files.
Code:
myFile = myPath & Filename
Open myFile For Input As [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL]
Do Until EOF(1)
Line Input [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL] , textline
posContent = InStr(1, textline, "title-detail")
If posContent > 0 Then
Sheets("data").Cells(j, 3) = textline
End If
Loop
Close [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL]
It worked, but the description text which I need to collect is not UTF-8 and become "Nội thất văn phòng"
So is there any other way to extract correct data?
Thanks.