<!--
{
  "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/CSVReadingError/badEncoding(row:column:cellContents:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData15CSVReadingErrorO11badEncodingyACSi_Si10Foundation0B0VtcACmF"
  },
  "title" : "CSVReadingError.badEncoding(row:column:cellContents:)"
}
-->

# CSVReadingError.badEncoding(row:column:cellContents:)

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

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

## Parameters

`row`

The index of the row that contains the invalid sequence.

`column`

The index of the column that contains the invalid sequence.

`cellContents`

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)