Is it possible to force Excel recognize UTF-8 CSV files automatically?

后端 未结 27 2078
醉梦人生
醉梦人生 2020-11-21 22:27

I\'m developing a part of an application that\'s responsible for exporting some data into CSV files. The application always uses UTF-8 because of its multilingual nature at

27条回答
  •  萌比男神i
    2020-11-21 22:56

    This is my working solution:

    vbFILEOPEN = "your_utf8_file.csv"
    Workbooks.OpenText Filename:=vbFILEOPEN, DataType:=xlDelimited, Semicolon:=True, Local:=True, Origin:=65001
    

    The key is Origin:=65001

提交回复
热议问题