I am trying to write to a file a string that contains chinese characters but I have an encoding issue (getting something like that 10 年以上经验)
Here is what I have.
csvContent, err := gocsv.MarshalString(&csvTranslation) // Get all clients as CSV string
if err != nil {
panic(err)
}
d1 := []byte(string(csvContent))
ioutil.WriteFile("result.csv", d1, 0644)
Could you point me to what I am missing