I am working on data extraction project using vba,in my code i have have string having data and during text file generation i want to convert whole text to utf-8 encoding string. My code is given below.
Set fso = CreateObject("Scripting.FileSystemObject")
Dim Fileout As Object
Set Fileout = fso.CreateTextFile("C:\Data\colorsizew" & Format(Now(), "_yyyy-mm-dd_hh-mm-ss") "_" & ".txt", True, True)
'Set Fileout = StrConv(Fileout, vbUnicode)
Dim dbs As DAO.Database
Set dbs = CurrentDb
news = asin_map
news = MyClean(news)
'news = MyClean(news)
news = Replace(news, "|", vbLf)
news = Replace(news, "{}", "|")
'news=iconv -c -t utf8 filename.csv > filename.utf8.csv
'---------------------utf-8
'here i want to convert news string in to utf-8
'------------------ends here
Fileout.Write news