We are exporting Lotus Notes documents to CSV file. Some of the field have Chinese characters in them. They are visible in Lotus Notes (though I don't understand them) but when we export them to CSV file they are converted to question marks. Below is the code snippet I am using for export:
fieldNames = Split("Field1,Field2,Field3,Field4", ",")
Set stream = session.CreateStream
If stream.Open(csvFileName) Then
Call stream.Truncate()
Forall f In fieldNames
Call stream.WriteText("""" + doc.GetItemValue(f)(0) + """,")
End Forall
.....
.....
.....
End If
Here if the field Field1
contains Chinese characters and it is exported, they are converted to question marks. How to properly export Chinese characters?