Skip to content

Parse utf8 cst Garbled code issue #42

@yjjbjh166

Description

@yjjbjh166

Parse utf8 cst Garbled code bug

Sub test2()
    Dim CSVint As CSVinterface
    Dim conf As CSVparserConfig
    Dim Arr() As Variant
    Set CSVint = New CSVinterface
    Set conf = CSVint.parseConfig
    With conf
        .path = "C:\Users\Administrator\Desktop\VBA-CSV\test.csv"
        conf.dialect.fieldsDelimiter = ","
        conf.dialect.recordsDelimiter = vbCrLf
        .multiEndOfLineCSV = True
        .utf8EncodedFile = True
    End With
    CSVint.ImportFromCSV(conf).DumpToArray Arr
    Sheet1.[a1].Resize(UBound(Arr) + 1, UBound(Arr, 2) + 1) = Arr
End Sub

test.csv

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions