Skip to content

Commit

Permalink
fix: unicode replacement character (0xFFFD) are not supported as csv …
Browse files Browse the repository at this point in the history
…delimiter (#36310)

#36309

Signed-off-by: OxalisCu <[email protected]>
  • Loading branch information
OxalisCu authored Oct 17, 2024
1 parent eb62433 commit 60e51f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util/importutilv2/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func SkipDiskQuotaCheck(options Options) bool {

func GetCSVSep(options Options) (rune, error) {
sep, err := funcutil.GetAttrByKeyFromRepeatedKV("sep", options)
unsupportedSep := []rune{0, '\n', '\r', '"'}
unsupportedSep := []rune{0, '\n', '\r', '"', 0xFFFD}
defaultSep := ','
if err != nil || len(sep) == 0 {
return defaultSep, nil
Expand Down

0 comments on commit 60e51f1

Please sign in to comment.