I'm using data from excel to write a json file to be read into sketch. Special characters like ® and ™ aren't coming through and are being replaced with a ?. I'm assuming that the default encoding of the file generated is not unicode. Can unicode be specified when the file is written? Here is the script I'm using to write to the text file.
Dim myFile As String
myFile = ThisWorkbook.Path & "/display_data_test.json"
Open myFile For Output As #1
Print #1, JSON
Close #1
I tried:
Dim myFile As String
myFile = ThisWorkbook.Path & "/display_data_test.json"
Dim fsT As Object
Set fsT = CreateObject("ADODB.Stream")
fsT.Type = 2
fsT.CharSet = "utf-8"
fsT.Open
fsT.writetext JSON
fsT.SaveToFile myFile, 2
This just gave me an error.