<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/CSVWritingError/badEncoding(row:column:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData15CSVWritingErrorO11badEncodingyACSi_SS10Foundation0B0VtcACmF"
  },
  "title" : "CSVWritingError.badEncoding(row:column:_:)"
}
-->

# CSVWritingError.badEncoding(row:column:_:)

An error that indicates CSV data contains an invalid UTF-8 byte sequence.

```
case badEncoding(row: Int, column: String, Data)
```

## Parameters

`row`

The index of the row that contains the invalid sequence.

`column`

The index of the column that contains the invalid sequence.

`data`

The data that contains the invalid sequence.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)