Use “ADODB.Stream” to convert ANSI to UTF-8, miss 1-2 character in the first row

前端 未结 1 851
慢半拍i
慢半拍i 2021-01-22 18:19

I need to convert \"ANSI\" csv file to \"UTF-8\" csv file. Below code can work, but the first character miss Please see attached screen shot, the original file : Customer the

相关标签:
1条回答
  • 2021-01-22 18:30

    You have to set

    stream.Type
    

    and

    stream.Charset
    

    before you open the stream.

    And stream.Position is 0 by default.

    Greetings

    Axel

    0 讨论(0)
提交回复
热议问题